public abstract class AbstractMonitoringLifecycleStrategy extends Object implements LifecycleStrategy, ComponentMonitorStrategy, Serializable
ComponentMonitor.| Constructor and Description |
|---|
AbstractMonitoringLifecycleStrategy(ComponentMonitor monitor)
Construct a AbstractMonitoringLifecycleStrategy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeMonitor(ComponentMonitor monitor)
Swaps the current monitor with a replacement.
|
ComponentMonitor |
currentMonitor()
Returns the monitor currently used
|
boolean |
isLazy(ComponentAdapter<?> adapter)
Is a component eager (not lazy) in that it should start when start() or equivalent is called,
or lazy (it will only start on first getComponent() ).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdispose, hasLifecycle, start, stoppublic AbstractMonitoringLifecycleStrategy(ComponentMonitor monitor)
monitor - the componentMonitor to useNullPointerException - if the monitor is nullpublic void changeMonitor(ComponentMonitor monitor)
changeMonitor in interface ComponentMonitorStrategymonitor - The new monitor.NullPointerException - if the passed in monitor is null.public ComponentMonitor currentMonitor()
ComponentMonitorStrategycurrentMonitor in interface ComponentMonitorStrategypublic boolean isLazy(ComponentAdapter<?> adapter)
LifecycleStrategyisLazy in interface LifecycleStrategyCopyright © 2003-2014 Codehaus. All Rights Reserved.