public abstract class AbstractMonitoringLifecycleStrategy extends java.lang.Object implements LifecycleStrategy, ComponentMonitorStrategy, java.io.Serializable
ComponentMonitor
.Modifier and Type | Field and Description |
---|---|
private ComponentMonitor |
componentMonitor |
Constructor and Description |
---|
AbstractMonitoringLifecycleStrategy(ComponentMonitor monitor)
Construct a AbstractMonitoringLifecylceStrategy.
|
Modifier and Type | Method and Description |
---|---|
void |
changeMonitor(ComponentMonitor monitor)
Changes the component monitor used
|
ComponentMonitor |
currentMonitor()
Returns the monitor currently used
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, hasLifecycle, start, stop
private ComponentMonitor componentMonitor
public AbstractMonitoringLifecycleStrategy(ComponentMonitor monitor)
monitor
- the componentMonitor to usejava.lang.NullPointerException
- if the monitor is null
public void changeMonitor(ComponentMonitor monitor)
ComponentMonitorStrategy
changeMonitor
in interface ComponentMonitorStrategy
monitor
- the new ComponentMonitor to usepublic ComponentMonitor currentMonitor()
ComponentMonitorStrategy
currentMonitor
in interface ComponentMonitorStrategy