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, wait
dispose, hasLifecycle, start, stop
public AbstractMonitoringLifecycleStrategy(ComponentMonitor monitor)
monitor
- the componentMonitor to useNullPointerException
- if the monitor is null
public void changeMonitor(ComponentMonitor monitor)
changeMonitor
in interface ComponentMonitorStrategy
monitor
- The new monitor.NullPointerException
- if the passed in monitor is null.public ComponentMonitor currentMonitor()
ComponentMonitorStrategy
currentMonitor
in interface ComponentMonitorStrategy
public boolean isLazy(ComponentAdapter<?> adapter)
LifecycleStrategy
isLazy
in interface LifecycleStrategy
Copyright © 2003–2015 Codehaus. All rights reserved.