public abstract class AbstractLifecycleComponent extends java.lang.Object implements SshLifecycleComponent
SshLifecycleComponent, providing some
command methods.| Constructor and Description |
|---|
AbstractLifecycleComponent() |
| 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.
|
protected void |
fireClosed()
Inform all listeners the component has closed.
|
protected void |
fireClosing()
Inform all listeners the component is closing.
|
protected void |
fireOpened()
Inform all listeners the component has opened.
|
protected java.util.List |
getListeners() |
void |
removeListener(SshLifecycleListener listener)
Remove a listener from those informed when the current phase in this components lifecycle changes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, isOpen, openpublic final void addListener(SshLifecycleListener listener)
SshLifecycleComponentaddListener in interface SshLifecycleComponentlistener - listenerpublic final void removeListener(SshLifecycleListener listener)
SshLifecycleComponentremoveListener in interface SshLifecycleComponentlistener - listenerprotected void fireOpened()
protected void fireClosed()
protected void fireClosing()
protected java.util.List getListeners()
Copyright © 2018. All rights reserved.