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>
public static interface CeasableHandle.CeaseAutomatonHandle<H> extends CeasableHandle<H>
TheCeasableHandle.CeaseAutomatonHandle
interface defines those methods related to the handle based cease life-cycle. The handle reference requires theCeasable.CeaseAutomaton
interface 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 boolean
hasCeaseAutomaton(H aHandle)
Determines whether the handle reference is ceasable by implementing theCeasable.CeaseAutomaton
interface.boolean
isCeasable(H aHandle)
Determines whether the component identified by the given handle may get ceased.boolean
isCeased(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.CeaseAutomaton
interface.- 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.
-
-