H - The type of the handle.public interface ReloadHandle<H>
ReloadHandle interface defines those methods related to the
handle based reload operation.
The handle reference requires the Reloadable interface to be
implemented.
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
hasReload(H aHandle) |
Determines whether the handle reference provides reloading by
implementing the
Reloadable interface. |
void |
reload(H aHandle) |
Reloads the (state of the) component identified by the given handle.
|
default void |
reloadUnchecked(H aHandle) |
Reloads the (state of the) component by calling
reload(Object)
without you to require catching a OpenException. |
boolean hasReload(H aHandle) throws UnknownHandleRuntimeException
Reloadable interface.aHandle - The handle to test whether the reference provides the
according functionality.UnknownHandleRuntimeException - Thrown in case the handle is
unknown (there is none reference for this handle).void reload(H aHandle) throws OpenException, UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
aHandle - The handle identifying the component.OpenException - in case reloading fails.UnknownHandleRuntimeException - Thrown in case the handle is
unknown (there is none reference for this handle).UnsupportedHandleOperationRuntimeException - in case the reference
of the handle does not support the requested operation.IllegalHandleStateChangeRuntimeException - Thrown in case a state
change is not possible due to the current state the referenced
component is in.default void reloadUnchecked(H aHandle)
reload(Object)
without you to require catching a OpenException.aHandle - The handle identifying the component.org.refcodes.exception.HiddenException - encapsulates the cause and is thrown upon
encountering a OpenException exceptionCopyright © 2018. All rights reserved.