public abstract class LifeCycledAdapter extends java.lang.Object implements LifeCycled
LifeCycled
in case you do not need to implement all methods from the interface.Constructor and Description |
---|
LifeCycledAdapter() |
Modifier and Type | Method and Description |
---|---|
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 |
public void init() throws java.lang.Exception
Status.UNINITIALIZED
to Status.AVAILABLE
init
in interface LifeCycled
java.lang.Exception
- to veto transitionpublic void close() throws java.lang.Exception
Status.AVAILABLE
to Status.UNINITIALIZED
close
in interface LifeCycled
java.lang.Exception
- to veto transition