|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.inject.AbstractModule org.jclouds.lifecycle.config.LifeCycleModule
public class LifeCycleModule
This associates java lifecycle annotations with guice hooks. For example, we invoke
PostConstruct
after injection, and Associate PreDestroy
with a global
Closer
object.
Stage.PRODUCTION
and execute
the bound ExecutionList
prior to using any other objects.
Ex.
Constructor Summary | |
---|---|
LifeCycleModule()
|
Method Summary | |
---|---|
protected void |
bindPostInjectionInvoke(Closer closer,
com.google.common.util.concurrent.ExecutionList list)
|
protected void |
configure()
|
Methods inherited from class com.google.inject.AbstractModule |
---|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LifeCycleModule()
Method Detail |
---|
protected void configure()
configure
in class com.google.inject.AbstractModule
protected void bindPostInjectionInvoke(Closer closer, com.google.common.util.concurrent.ExecutionList list)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |