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

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

public abstract class AbstractLoggingInterceptor
extends Object
implements Interceptor

Since:
1.1
See Also:
Serialized Form

Constructor Summary
AbstractLoggingInterceptor()
           
 
Method Summary
protected  void convert(StringBuffer buffer, Object input)
           
protected  void entering(Method method, Object[] args)
           
protected  void exiting(Method method, Object result)
           
 Object intercept(Invocation invocation)
           
protected abstract  boolean isLoggingEnabled()
           
protected abstract  void logMessage(String message)
           
protected abstract  void logMessage(String message, Throwable t)
           
protected  void throwing(Method method, Throwable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLoggingInterceptor

public AbstractLoggingInterceptor()
Method Detail

isLoggingEnabled

protected abstract boolean isLoggingEnabled()

logMessage

protected abstract void logMessage(String message)

logMessage

protected abstract void logMessage(String message,
                                   Throwable t)

intercept

public Object intercept(Invocation invocation)
                 throws Throwable
Specified by:
intercept in interface Interceptor
Throws:
Throwable

entering

protected void entering(Method method,
                        Object[] args)

convert

protected void convert(StringBuffer buffer,
                       Object input)

exiting

protected void exiting(Method method,
                       Object result)

throwing

protected void throwing(Method method,
                        Throwable t)


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