Package org.refcodes.component
Interface DestroyableHandle.DestroyAutomatonHandle<H>
-
- Type Parameters:
H- The type of the handle.
- All Superinterfaces:
DestroyableHandle<H>
- All Known Subinterfaces:
CompositeComponentHandle<H,REF>,ConfigurableLifeCycleComponentHandle.ConfigurableLifeCycleAutomatonHandle<H,CTX>,LifeCycleComponentHandle.LifeCycleAutomatonHandle<H>
- Enclosing interface:
- DestroyableHandle<H>
public static interface DestroyableHandle.DestroyAutomatonHandle<H> extends DestroyableHandle<H>
TheDestroyableHandle.DestroyAutomatonHandleinterface defines those methods related to the handle based destroy life-cycle. The handle reference requires theDestroyable.DestroyAutomatoninterface to be implemented.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.DestroyableHandle
DestroyableHandle.DestroyAutomatonHandle<H>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasDestroyAutomaton(H aHandle)Determines whether the handle reference is destroyable by implementing theDestroyable.DestroyAutomatoninterface.booleanisDestroyable(H aHandle)Determines whether the component identified by the given handle may get destroyed.booleanisDestroyed(H aHandle)Determines whether the component identified by the given handle is destroyed.-
Methods inherited from interface org.refcodes.component.DestroyableHandle
destroy, hasDestroyable
-
-
-
-
Method Detail
-
hasDestroyAutomaton
boolean hasDestroyAutomaton(H aHandle) throws UnknownHandleRuntimeException
Determines whether the handle reference is destroyable by implementing theDestroyable.DestroyAutomatoninterface.- Parameters:
aHandle- The handle to test whether the reference provides the according functionality.- Returns:
- True in case the reference provides the according functionality.
- Throws:
UnknownHandleRuntimeException- in case the handle is unknown.
-
isDestroyable
boolean isDestroyable(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
Determines whether the component identified by the given handle may get destroyed.- Parameters:
aHandle- The handle identifying the component.- Returns:
- True if
DestroyableHandle.destroy(Object)is possible. - Throws:
UnknownHandleRuntimeException- in case the given handle is unknown.UnsupportedHandleOperationRuntimeException- in case the reference of the handle does not support the requested operation.
-
isDestroyed
boolean isDestroyed(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
Determines whether the component identified by the given handle is destroyed.- Parameters:
aHandle- The handle identifying the component.- Returns:
- True in case of being destroyed, else false.
- Throws:
UnknownHandleRuntimeException- in case the given handle is unknown.UnsupportedHandleOperationRuntimeException- in case the reference of the handle does not support the requested operation.
-
-