de.bea.domingo.monitor
Class AbstractMonitorEnabled

java.lang.Object
  extended by de.bea.domingo.monitor.AbstractMonitorEnabled
All Implemented Interfaces:
MonitorEnabled
Direct Known Subclasses:
BaseHttp, BaseProxy, DominoHttpClient, NoRecycleStrategy, RecycleStrategy

public abstract class AbstractMonitorEnabled
extends java.lang.Object
implements MonitorEnabled

Base class for all monitor enabled classes.

As default, the associated monitor is a NullMonitor that simply does nothing. To monitor events the application should either set a ConsoleMonitor or implement itself the Monitor interface set an instance of this class with the setMonitor method.

Author:
Kurt Riede
See Also:
DNotesMonitor, NullMonitor, ConsoleMonitor, MonitorEnabled.setMonitor(de.bea.domingo.DNotesMonitor)

Constructor Summary
AbstractMonitorEnabled()
          Constructor.
AbstractMonitorEnabled(DNotesMonitor theMonitor)
          Constructor.
 
Method Summary
 DNotesMonitor getMonitor()
          Returns the current monitor.
 void setMonitor(DNotesMonitor theMonitor)
          Returns the current monitor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMonitorEnabled

public AbstractMonitorEnabled()
Constructor.


AbstractMonitorEnabled

public AbstractMonitorEnabled(DNotesMonitor theMonitor)
Constructor.

Parameters:
theMonitor - the monitor
Method Detail

getMonitor

public final DNotesMonitor getMonitor()
Returns the current monitor.

Specified by:
getMonitor in interface MonitorEnabled
Returns:
the current monitor.
See Also:
MonitorEnabled.getMonitor()

setMonitor

public final void setMonitor(DNotesMonitor theMonitor)
Returns the current monitor.

Specified by:
setMonitor in interface MonitorEnabled
Parameters:
theMonitor - the current monitor.
See Also:
MonitorEnabled.setMonitor(de.bea.domingo.DNotesMonitor)


Domingo Java-API