org.springframework.aop.interceptor
Class DebugInterceptor

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

public class DebugInterceptor
extends Object
implements MethodInterceptor, Serializable

AOP Alliance MethodInterceptor that can be introduced in a chain to display verbose information about intercepted invocations to the logger.

Author:
Rod Johnson, Juergen Hoeller
See Also:
Serialized Form

Field Summary
protected static Log logger
          Static to avoid serializing the logger
 
Constructor Summary
DebugInterceptor()
           
 
Method Summary
 int getCount()
          Return the number of times this interceptor has been invoked.
 Object invoke(MethodInvocation invocation)
           
 void resetCount()
          Reset the invocation count to zero.
 
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

DebugInterceptor

public DebugInterceptor()
Method Detail

invoke

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

getCount

public int getCount()
Return the number of times this interceptor has been invoked.


resetCount

public void resetCount()
Reset the invocation count to zero.



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