org.springframework.aop.interceptor
Class TraceInterceptor

java.lang.Object
  extended byorg.springframework.aop.interceptor.TraceInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, java.io.Serializable

public class TraceInterceptor
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor, java.io.Serializable

Simple AOP Alliance MethodInterceptor that can be introduced in a chain to display verbose trace information about intercepted method invocations with method entry and method exit info using Commons Logging at DEBUG level. *

Author:
Dmitriy Kopylenko
See Also:
Serialized Form

Field Summary
protected static org.apache.commons.logging.Log logger
          Static to avoid serializing the logger
 
Constructor Summary
TraceInterceptor()
           
 
Method Summary
 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.commons.logging.Log logger
Static to avoid serializing the logger

Constructor Detail

TraceInterceptor

public TraceInterceptor()
Method Detail

invoke

public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
                        throws java.lang.Throwable
Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
java.lang.Throwable
See Also:
MethodInterceptor.invoke(MethodInvocation)


Copyright (C) 2003-2004 The Spring Framework Project.