java.lang.Object | |||
↳ | org.springframework.aop.interceptor.AbstractTraceInterceptor | ||
↳ | org.springframework.aop.interceptor.SimpleTraceInterceptor | ||
↳ | org.springframework.aop.interceptor.DebugInterceptor |
AOP Alliance MethodInterceptor
that can be introduced in a chain
to display verbose information about intercepted invocations to the logger.
Logs full invocation details on method entry and method exit,
including invocation arguments and invocation count. This is only
intended for debugging purposes; use SimpleTraceInterceptor
or CustomizableTraceInterceptor
for pure tracing purposes.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.aop.interceptor.AbstractTraceInterceptor
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new DebugInterceptor with a static logger.
| |||||||||||
Create a new DebugInterceptor with dynamic or static logger,
according to the given flag.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the number of times this interceptor has been invoked.
| |||||||||||
Determines whether or not logging is enabled for the particular
MethodInvocation . | |||||||||||
Reset the invocation count to zero.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return a description for the given method invocation.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.aop.interceptor.SimpleTraceInterceptor
| |||||||||||
From class
org.springframework.aop.interceptor.AbstractTraceInterceptor
| |||||||||||
From class
java.lang.Object
|
Create a new DebugInterceptor with a static logger.
Create a new DebugInterceptor with dynamic or static logger, according to the given flag.
useDynamicLogger | whether to use a dynamic logger or a static logger |
---|
Return the number of times this interceptor has been invoked.
Determines whether or not logging is enabled for the particular MethodInvocation
.
If not, the method invocation proceeds as normal, otherwise the method invocation is passed
to the invokeUnderTrace
method for handling.
Throwable |
---|
Reset the invocation count to zero.
Return a description for the given method invocation.
invocation | the invocation to describe |
---|