Package org.refcodes.component
Interface CeasableHandle.CeaseAutomatonHandle<H>
-
- Type Parameters:
H- The type of the handle.
- All Superinterfaces:
CeasableHandle<H>
- Enclosing interface:
- CeasableHandle<H>
public static interface CeasableHandle.CeaseAutomatonHandle<H> extends CeasableHandle<H>
TheCeasableHandle.CeaseAutomatonHandleinterface defines those methods related to the handle based cease life-cycle. The handle reference requires theCeasable.CeaseAutomatoninterface to be implemented.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.CeasableHandle
CeasableHandle.CeaseAutomatonHandle<H>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasCeaseAutomaton(H aHandle)Determines whether the handle reference is ceasable by implementing theCeasable.CeaseAutomatoninterface.booleanisCeasable(H aHandle)Determines whether the component identified by the given handle may get ceased.booleanisCeased(H aHandle)Determines whether the component identified by the given handle is ceased.-
Methods inherited from interface org.refcodes.component.CeasableHandle
cease, hasCeasable
-
-
-
-
Method Detail
-
hasCeaseAutomaton
boolean hasCeaseAutomaton(H aHandle) throws UnknownHandleRuntimeException
Determines whether the handle reference is ceasable by implementing theCeasable.CeaseAutomatoninterface.- 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.
-
isCeasable
boolean isCeasable(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
Determines whether the component identified by the given handle may get ceased.- Parameters:
aHandle- The handle identifying the component.- Returns:
- True if
CeasableHandle.cease(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.
-
isCeased
boolean isCeased(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
Determines whether the component identified by the given handle is ceased.- Parameters:
aHandle- The handle identifying the component.- Returns:
- True in case of being ceased, 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.
-
-