public final class LifecycleModule
extends java.lang.Object
implements com.google.inject.Module
Module
that provides JSR250 lifecycle management by following PostConstruct
and
PreDestroy
annotations. The lifecycle can be controlled with the associated BeanManager
.Modifier and Type | Field and Description |
---|---|
(package private) BeanManager |
manager |
private com.google.inject.matcher.Matcher<com.google.inject.TypeLiteral<?>> |
matcher |
private com.google.inject.spi.TypeListener |
typeListener |
Constructor and Description |
---|
LifecycleModule() |
LifecycleModule(BeanManager manager) |
Modifier and Type | Method and Description |
---|---|
void |
configure(com.google.inject.Binder binder) |
private final com.google.inject.matcher.Matcher<com.google.inject.TypeLiteral<?>> matcher
private final com.google.inject.spi.TypeListener typeListener
final BeanManager manager
public LifecycleModule()
public LifecycleModule(BeanManager manager)