org.springframework.aop.interceptor
Class DebugInterceptor
java.lang.Object
org.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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final Log logger
- Static to avoid serializing the logger
DebugInterceptor
public DebugInterceptor()
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.