H
- The type of the handle.public static interface DestroyableHandle.DestroyAutomatonHandle<H> extends DestroyableHandle<H>
DestroyableHandle.DestroyAutomatonHandle
interface defines those methods
related to the handle based destroy life-cycle.
The handle reference requires the Destroyable.DestroyAutomaton
interface to
be implemented.DestroyableHandle.DestroyAutomatonHandle<H>
Modifier and Type | Method and Description |
---|---|
boolean |
hasDestroyAutomaton(H aHandle)
Determines whether the handle reference is destroyable by
implementing the
Destroyable.DestroyAutomaton interface. |
boolean |
isDestroyable(H aHandle)
Determines whether the component identified by the given handle may
get destroyed.
|
boolean |
isDestroyed(H aHandle)
Determines whether the component identified by the given handle is
destroyed.
|
destroy, hasDestroyable
boolean hasDestroyAutomaton(H aHandle) throws UnknownHandleRuntimeException
Destroyable.DestroyAutomaton
interface.aHandle
- The handle to test whether the reference provides the
according functionality.UnknownHandleRuntimeException
- in case the handle is unknown.boolean isDestroyable(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
aHandle
- The handle identifying the component.DestroyableHandle.destroy(Object)
is possible.UnsupportedHandleOperationRuntimeException
- in case the
reference of the handle does not support the requested
operation.UnknownHandleRuntimeException
- in case the given handle is
unknown.boolean isDestroyed(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
aHandle
- The handle identifying the component.UnsupportedHandleOperationRuntimeException
- in case the
reference of the handle does not support the requested
operation.UnknownHandleRuntimeException
- in case the given handle is
unknown.Copyright © 2016. All rights reserved.