|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.picocontainer.lifecycle.AbstractMonitoringLifecycleStrategy
public abstract class AbstractMonitoringLifecycleStrategy
Abstract base class for lifecycle strategy implementation supporting a ComponentMonitor
.
Constructor Summary | |
---|---|
AbstractMonitoringLifecycleStrategy(ComponentMonitor monitor)
Construct a AbstractMonitoringLifecycleStrategy. |
Method Summary | |
---|---|
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() ). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.picocontainer.LifecycleStrategy |
---|
dispose, hasLifecycle, start, stop |
Constructor Detail |
---|
public AbstractMonitoringLifecycleStrategy(ComponentMonitor monitor)
monitor
- the componentMonitor to use
NullPointerException
- if the monitor is null
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |