org.picocontainer.lifecycle
Class AbstractMonitoringLifecycleStrategy
java.lang.Object
org.picocontainer.lifecycle.AbstractMonitoringLifecycleStrategy
- All Implemented Interfaces:
- Serializable, ComponentMonitorStrategy, LifecycleStrategy
- Direct Known Subclasses:
- ReflectionLifecycleStrategy, StartableLifecycleStrategy
public abstract class AbstractMonitoringLifecycleStrategy
- extends Object
- implements LifecycleStrategy, ComponentMonitorStrategy, Serializable
Abstract base class for lifecycle strategy implementation supporting a ComponentMonitor.
- Author:
- Jörg Schaible
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractMonitoringLifecycleStrategy
public AbstractMonitoringLifecycleStrategy(ComponentMonitor monitor)
- Construct a AbstractMonitoringLifecycleStrategy.
- Parameters:
monitor - the componentMonitor to use
- Throws:
NullPointerException - if the monitor is null
changeMonitor
public void changeMonitor(ComponentMonitor monitor)
- Description copied from interface:
ComponentMonitorStrategy
- Changes the component monitor used
- Specified by:
changeMonitor in interface ComponentMonitorStrategy
- Parameters:
monitor - the new ComponentMonitor to use
currentMonitor
public ComponentMonitor currentMonitor()
- Description copied from interface:
ComponentMonitorStrategy
- Returns the monitor currently used
- Specified by:
currentMonitor in interface ComponentMonitorStrategy
- Returns:
- The ComponentMonitor currently used
Copyright © 2003-2007 Codehaus. All Rights Reserved.