public interface SshLifecycleComponent
All of the components may fire events when the lifecycle events occur.
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(SshLifecycleListener listener)
Add a listener to those informed when the current phase in this components lifecycle changes.
|
void |
close()
Close this component.
|
boolean |
isOpen()
Get if this component is currently open.
|
void |
open()
Open the component.
|
void |
removeListener(SshLifecycleListener listener)
Remove a listener from those informed when the current phase in this components lifecycle changes.
|
void addListener(SshLifecycleListener listener)
listener - listenervoid removeListener(SshLifecycleListener listener)
listener - listenervoid open() throws SshException
close() the component when
you are finished with it.SshException#close()}boolean isOpen()
void close()
throws SshException
SshExceptionCopyright © 2018. All rights reserved.