org.ehcache.spi
Interface LifeCycled

All Known Implementing Classes:
LifeCycledAdapter

public interface LifeCycled

Internal interface to register hooks with the life cycle of Cache or CacheManager instances.


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
 

Method Detail

init

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

Throws:
java.lang.Exception - to veto transition

close

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

Throws:
java.lang.Exception - to veto transition