Class LifecycleModule

  • All Implemented Interfaces:
    com.google.inject.Module

    public final class LifecycleModule
    extends java.lang.Object
    implements com.google.inject.Module
    Guice Module that provides JSR250 lifecycle management by following PostConstruct and PreDestroy annotations. The lifecycle can be controlled with the associated BeanManager.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) BeanManager manager  
      private com.google.inject.matcher.Matcher<com.google.inject.TypeLiteral<?>> matcher  
      private com.google.inject.spi.TypeListener typeListener  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configure​(com.google.inject.Binder binder)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • matcher

        private final com.google.inject.matcher.Matcher<com.google.inject.TypeLiteral<?>> matcher
      • typeListener

        private final com.google.inject.spi.TypeListener typeListener
    • Constructor Detail

      • LifecycleModule

        public LifecycleModule()
      • LifecycleModule

        public LifecycleModule​(BeanManager manager)
    • Method Detail

      • configure

        public void configure​(com.google.inject.Binder binder)
        Specified by:
        configure in interface com.google.inject.Module