H
- The type of the handle.public static interface DisposableHandle.DisposeAutomatonHandle<H> extends DisposableHandle<H>
DisposableHandle.DisposeAutomatonHandle
interface defines those methods
related to the handle based dispose life-cycle.
The handle reference requires the DisposeAutomaton
interface to
be implemented.DisposableHandle.DisposeAutomatonHandle<H>
Modifier and Type | Method and Description |
---|---|
boolean |
hasDisposeAutomaton(H aHandle)
Determines whether the handle reference is disposable by implementing
the
DisposeAutomaton interface. |
boolean |
isDisposable(H aHandle)
Determines whether the component identified by the given handle may
get disposed.
|
boolean |
isDisposed(H aHandle)
Determines whether the component identified by the given handle is
disposed.
|
dispose, hasDisposable
boolean hasDisposeAutomaton(H aHandle) throws UnknownHandleRuntimeException
DisposeAutomaton
interface.aHandle
- The handle to test whether the reference provides the
according functionality.UnknownHandleRuntimeException
- in case the handle is unknown.boolean isDisposable(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
aHandle
- The handle identifying the component.DisposableHandle.dispose(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 isDisposed(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 © 2017. All rights reserved.