org.ehcache.spi
Class LifeCycledAdapter

java.lang.Object
  extended by org.ehcache.spi.LifeCycledAdapter
All Implemented Interfaces:
LifeCycled

public abstract class LifeCycledAdapter
extends java.lang.Object
implements LifeCycled

Adapter class for LifeCycled in case you do not need to implement all methods from the interface.


Constructor Summary
LifeCycledAdapter()
           
 
Method Summary
 void close()
          Callback used by internal life cycling infrastructure when transitioning from Status.AVAILABLE to Status.UNINITIALIZED
Throwing an Exception here, will fail the transition
 void init()
          Callback used by internal life cycling infrastructure when transitioning from Status.UNINITIALIZED to Status.AVAILABLE
Throwing an Exception here, will fail the transition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifeCycledAdapter

public LifeCycledAdapter()
Method Detail

init

public void init()
          throws java.lang.Exception
Callback used by internal life cycling infrastructure when transitioning from Status.UNINITIALIZED to Status.AVAILABLE
Throwing an Exception here, will fail the transition

Specified by:
init in interface LifeCycled
Throws:
java.lang.Exception - to veto transition

close

public void close()
           throws java.lang.Exception
Callback used by internal life cycling infrastructure when transitioning from Status.AVAILABLE to Status.UNINITIALIZED
Throwing an Exception here, will fail the transition

Specified by:
close in interface LifeCycled
Throws:
java.lang.Exception - to veto transition