public abstract class AbstractLifecycleComponentWithEvents extends AbstractLifecycleComponent
AbstractLifecycleComponent that fires
events when the lifecycle methods are called. Most SSHAPI lifecycle
components will extend this.| Constructor and Description |
|---|
AbstractLifecycleComponentWithEvents() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkOpen() |
void |
close()
Close this component.
|
boolean |
isOpen()
Get if this component is currently open.
|
protected abstract void |
onClose() |
protected abstract void |
onOpen() |
void |
open()
Open the component.
|
addListener, fireClosed, fireClosing, fireOpened, getListeners, removeListenerpublic AbstractLifecycleComponentWithEvents()
public final boolean isOpen()
SshLifecycleComponentSshLifecycleComponent.open(),
SshLifecycleComponent.close()public final void open()
throws SshException
SshLifecycleComponentSshLifecycleComponent.close() the component when
you are finished with it.SshException#close()}protected final void checkOpen()
public final void close()
throws SshException
SshLifecycleComponentSshExceptionprotected abstract void onOpen()
throws SshException
SshExceptionprotected abstract void onClose()
throws SshException
SshExceptionCopyright © 2018. All rights reserved.