org.apache.commons.proxy.interceptor.logging
Class AbstractLoggingInterceptor
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLoggingInterceptor
public AbstractLoggingInterceptor()
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.