Class LifecycleModule

java.lang.Object
org.eclipse.sisu.bean.LifecycleModule
All Implemented Interfaces:
com.google.inject.Module

public final class LifecycleModule extends 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 Details

    • matcher

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

      private final com.google.inject.spi.TypeListener typeListener
    • manager

      final BeanManager manager
  • Constructor Details

    • LifecycleModule

      public LifecycleModule()
    • LifecycleModule

      public LifecycleModule(BeanManager manager)
  • Method Details

    • configure

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