org.apache.commons.proxy.interceptor
Class LoggingInterceptor

java.lang.Object
  extended by org.apache.commons.proxy.interceptor.LoggingInterceptor
All Implemented Interfaces:
Interceptor

public class LoggingInterceptor
extends Object
implements Interceptor

An interceptor which logs each method invocation. Note: The implementation of this class was borrowed from HiveMind's logging interceptor.

Dependencies:

Since:
1.0
Author:
James Carman

Constructor Summary
LoggingInterceptor(org.apache.commons.logging.Log log)
           
 
Method Summary
 Object intercept(Invocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingInterceptor

public LoggingInterceptor(org.apache.commons.logging.Log log)
Method Detail

intercept

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


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