org.prevayler.foundation.monitor
Class LoggingMonitor

java.lang.Object
  extended by org.prevayler.foundation.monitor.LoggingMonitor
All Implemented Interfaces:
Monitor
Direct Known Subclasses:
Log4jMonitor, SimpleMonitor

public abstract class LoggingMonitor
extends Object
implements Monitor

Abstract Monitor for Logging implementation monitors to extend.


Constructor Summary
LoggingMonitor()
           
 
Method Summary
protected abstract  void error(Class clazz, String message, Exception ex)
           
protected abstract  void info(Class clazz, String Message)
           
protected  boolean isInfoEnabled(Class clazz)
          default returns true.
 void notify(Class clazz, String message)
          Something interesting happened.
 void notify(Class clazz, String message, Exception ex)
          An interesting exception was thrown.
 void notify(Class clazz, String message, File file)
          Something interesting happened regarding access to a file.
 void notify(Class clazz, String message, File file, Exception ex)
          An exception was thrown while trying to access a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingMonitor

public LoggingMonitor()
Method Detail

notify

public void notify(Class clazz,
                   String message)
Description copied from interface: Monitor
Something interesting happened.

Specified by:
notify in interface Monitor

notify

public void notify(Class clazz,
                   String message,
                   Exception ex)
Description copied from interface: Monitor
An interesting exception was thrown.

Specified by:
notify in interface Monitor

notify

public void notify(Class clazz,
                   String message,
                   File file)
Description copied from interface: Monitor
Something interesting happened regarding access to a file.

Specified by:
notify in interface Monitor

notify

public void notify(Class clazz,
                   String message,
                   File file,
                   Exception ex)
Description copied from interface: Monitor
An exception was thrown while trying to access a file.

Specified by:
notify in interface Monitor

info

protected abstract void info(Class clazz,
                             String Message)

error

protected abstract void error(Class clazz,
                              String message,
                              Exception ex)

isInfoEnabled

protected boolean isInfoEnabled(Class clazz)
default returns true. Override as needed.



Copyright © 2001-2013. All Rights Reserved.