org.picocontainer.defaults
Class MonitoringComponentAdapterFactory
java.lang.Object
org.picocontainer.defaults.MonitoringComponentAdapterFactory
- All Implemented Interfaces:
- java.io.Serializable, ComponentAdapterFactory, ComponentMonitorStrategy
- Direct Known Subclasses:
- ConstructorInjectionComponentAdapterFactory, DecoratingComponentAdapterFactory, DefaultComponentAdapterFactory, SetterInjectionComponentAdapterFactory
public abstract class MonitoringComponentAdapterFactory
- extends java.lang.Object
- implements ComponentAdapterFactory, ComponentMonitorStrategy, java.io.Serializable
Abstract ComponentAdapterFactory
supporting a
ComponentMonitorStrategy
.
It provides a default ComponentMonitor
,
but does not allow to use null
for the component monitor.
- Since:
- 1.2
- Author:
- Mauro Talevi
- See Also:
ComponentAdapterFactory
,
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
MonitoringComponentAdapterFactory
protected MonitoringComponentAdapterFactory(ComponentMonitor monitor)
- Constructs a MonitoringComponentAdapterFactory with a custom monitor
- Parameters:
monitor
- the ComponentMonitor used by the factory
MonitoringComponentAdapterFactory
protected MonitoringComponentAdapterFactory()
- Constructs a MonitoringComponentAdapterFactory 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