Package org.refcodes.component
Interface Destroyable.DestroyAutomaton
-
- All Superinterfaces:
Destroyable
- All Known Subinterfaces:
ConfigurableLifeCycleComponent.ConfigurableLifeCycleAutomaton<CTX>
,LifeCycleComponent.LifeCycleAutomaton
- All Known Implementing Classes:
ConfigurableLifeCycleAutomatonImpl
,LifeCycleAutomatonImpl
,LifeCycleAutomatonImpl.ManualLifeCycleAutomatonImpl
- Enclosing interface:
- Destroyable
public static interface Destroyable.DestroyAutomaton extends Destroyable
TheDestroyable.DestroyAutomaton
interface defines those methods related to the destroy life-cycle.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.Destroyable
Destroyable.DestroyAutomaton
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isDestroyable()
Determines whether the component may get destroyed.boolean
isDestroyed()
Determines whether the component is destroyed.-
Methods inherited from interface org.refcodes.component.Destroyable
destroy
-
-
-
-
Method Detail
-
isDestroyable
boolean isDestroyable()
Determines whether the component may get destroyed.- Returns:
- True if
Destroyable.destroy()
is possible.
-
isDestroyed
boolean isDestroyed()
Determines whether the component is destroyed. In case of being true, then invoking any of thatComponent
instance's methods (except theDestroyable.destroy()
method) must throw anIllegalStateException
as by definition a once destroyedComponent
is in the state of being destroyed which is irreversible.- Returns:
- True in case of being destroyed, else false.
-
-