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

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

public class JdkLoggingInterceptor
extends AbstractLoggingInterceptor

An interceptor which logs method invocations using a JDK logger using the "finer" logging level.

Since:
1.1
See Also:
Serialized Form

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

Constructor Detail

JdkLoggingInterceptor

public JdkLoggingInterceptor(Class clazz)

JdkLoggingInterceptor

public JdkLoggingInterceptor(String loggerName)
Method Detail

entering

protected void entering(Method method,
                        Object[] args)
Overrides:
entering in class AbstractLoggingInterceptor

exiting

protected void exiting(Method method,
                       Object result)
Overrides:
exiting in class AbstractLoggingInterceptor

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

throwing

protected void throwing(Method method,
                        Throwable t)
Overrides:
throwing in class AbstractLoggingInterceptor


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