org.jclouds.lifecycle.config
Class LifeCycleModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.lifecycle.config.LifeCycleModule
All Implemented Interfaces:
com.google.inject.Module

public class LifeCycleModule
extends com.google.inject.AbstractModule

This associates java lifecycle annotations with guice hooks. For example, we invoke PostConstruct after injection, and Associate PreDestroy with a global Closer object.

Author:
Adrian Cole

Constructor Summary
LifeCycleModule()
           
 
Method Summary
protected  void bindPostInjectionInvoke(Closer closer)
           
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

LifeCycleModule

public LifeCycleModule()
Method Detail

configure

protected void configure()
Specified by:
configure in class com.google.inject.AbstractModule

bindPostInjectionInvoke

protected void bindPostInjectionInvoke(Closer closer)


Copyright © 2009-2011 jclouds. All Rights Reserved.