public abstract class MonitoringComponentAdapterFactory extends java.lang.Object implements ComponentAdapterFactory, ComponentMonitorStrategy, java.io.Serializable
ComponentAdapterFactory supporting a
ComponentMonitorStrategy.
It provides a default ComponentMonitor,
but does not allow to use null for the component monitor.ComponentAdapterFactory,
ComponentMonitorStrategy,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
private ComponentMonitor |
componentMonitor |
| Modifier | Constructor and Description |
|---|---|
protected |
MonitoringComponentAdapterFactory()
Constructs a MonitoringComponentAdapterFactory with a
default monitor. |
protected |
MonitoringComponentAdapterFactory(ComponentMonitor monitor)
Constructs a MonitoringComponentAdapterFactory with a custom monitor
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeMonitor(ComponentMonitor monitor)
Changes the component monitor used
|
ComponentMonitor |
currentMonitor()
Returns the monitor currently used
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateComponentAdapterprivate ComponentMonitor componentMonitor
protected MonitoringComponentAdapterFactory(ComponentMonitor monitor)
monitor - the ComponentMonitor used by the factoryprotected MonitoringComponentAdapterFactory()
default monitor.public void changeMonitor(ComponentMonitor monitor)
ComponentMonitorStrategychangeMonitor in interface ComponentMonitorStrategymonitor - the new ComponentMonitor to usepublic ComponentMonitor currentMonitor()
currentMonitor in interface ComponentMonitorStrategy