Module org.refcodes.component
Package org.refcodes.component
Interface CeasableHandle.CeaseAutomatonHandle<H>
- Type Parameters:
H- The type of the handle.
- All Superinterfaces:
CeasableHandle<H>
- Enclosing interface:
- CeasableHandle<H>
The
CeasableHandle.CeaseAutomatonHandle interface defines those methods related
to the handle based cease life-cycle. The handle reference requires the
Ceasable.CeaseAutomaton interface to be implemented.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.component.CeasableHandle
CeasableHandle.CeaseAutomatonHandle<H> -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasCeaseAutomaton(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.booleanDetermines whether the component identified by the given handle is ceased.Methods inherited from interface org.refcodes.component.CeasableHandle
cease, hasCeasable
-
Method Details
-
hasCeaseAutomaton
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
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
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.
-