org.springframework.aop.interceptor
Class TraceInterceptor

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

public class TraceInterceptor
extends Object
implements MethodInterceptor, 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.

Since:
1.0.2
Author:
Dmitriy Kopylenko, Juergen Hoeller
See Also:
Serialized Form

Field Summary
protected static Log logger
          Static to avoid serializing the logger
 
Constructor Summary
TraceInterceptor()
           
 
Method Summary
 Object invoke(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 Log logger
Static to avoid serializing the logger

Constructor Detail

TraceInterceptor

public TraceInterceptor()
Method Detail

invoke

public Object invoke(MethodInvocation invocation)
              throws Throwable
Specified by:
invoke in interface MethodInterceptor
Throws:
Throwable


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