org.picocontainer.defaults
Class MonitoringComponentAdapter
java.lang.Object
org.picocontainer.defaults.MonitoringComponentAdapter
- All Implemented Interfaces:
- java.io.Serializable, ComponentAdapter, ComponentMonitorStrategy
- Direct Known Subclasses:
- AbstractComponentAdapter
public abstract class MonitoringComponentAdapter
- extends java.lang.Object
- implements ComponentAdapter, ComponentMonitorStrategy, java.io.Serializable
Abstract ComponentAdapter supporting a
ComponentMonitorStrategy.
It provides a default ComponentMonitor,
but does not allow to use null for the component monitor.
- Since:
- 1.2
- Version:
- $Revision: $
- Author:
- Mauro Talevi
- See Also:
ComponentAdapter,
ComponentMonitorStrategy,
Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
componentMonitor
private ComponentMonitor componentMonitor
MonitoringComponentAdapter
protected MonitoringComponentAdapter(ComponentMonitor monitor)
- Constructs a MonitoringComponentAdapter with a custom monitor
- Parameters:
monitor - the component monitor used by this ComponentAdapter
MonitoringComponentAdapter
protected MonitoringComponentAdapter()
- Constructs a MonitoringComponentAdapter with a
default monitor.
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()
- Returns the monitor currently used
- Specified by:
currentMonitor in interface ComponentMonitorStrategy
- Returns:
- The ComponentMonitor currently used