H - The type of the handle.DisposableHandle<H>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 | 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, hasDisposableboolean 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.UnknownHandleRuntimeException - in case the given handle is
unknown.UnsupportedHandleOperationRuntimeException - in case the
reference of the handle does not support the requested
operation.boolean isDisposed(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
aHandle - The handle identifying the component.UnknownHandleRuntimeException - in case the given handle is
unknown.UnsupportedHandleOperationRuntimeException - in case the
reference of the handle does not support the requested
operation.Copyright © 2018. All rights reserved.