org.apache.commons.proxy.interceptor.logging
Class CommonsLoggingInterceptor

java.lang.Object
  extended by org.apache.commons.proxy.interceptor.logging.AbstractLoggingInterceptor
      extended by org.apache.commons.proxy.interceptor.logging.CommonsLoggingInterceptor
All Implemented Interfaces:
Serializable, Interceptor

public class CommonsLoggingInterceptor
extends AbstractLoggingInterceptor

An interceptor which logs method invocations using an Apache Commons Logging Log object at the "trace" level.

Since:
1.1
See Also:
Serialized Form

Constructor Summary
CommonsLoggingInterceptor(Class clazz)
           
CommonsLoggingInterceptor(String logName)
           
 
Method Summary
protected  boolean isLoggingEnabled()
           
protected  void logMessage(String message)
           
protected  void logMessage(String message, Throwable t)
           
 
Methods inherited from class org.apache.commons.proxy.interceptor.logging.AbstractLoggingInterceptor
convert, entering, exiting, intercept, throwing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonsLoggingInterceptor

public CommonsLoggingInterceptor(String logName)

CommonsLoggingInterceptor

public CommonsLoggingInterceptor(Class clazz)
Method Detail

isLoggingEnabled

protected boolean isLoggingEnabled()
Specified by:
isLoggingEnabled in class AbstractLoggingInterceptor

logMessage

protected void logMessage(String message)
Specified by:
logMessage in class AbstractLoggingInterceptor

logMessage

protected void logMessage(String message,
                          Throwable t)
Specified by:
logMessage in class AbstractLoggingInterceptor


Copyright © 2005-2008 The Apache Software Foundation. All Rights Reserved.