java.lang.Object | ||
↳ | org.springframework.aop.interceptor.AbstractTraceInterceptor | |
↳ | org.springframework.aop.interceptor.SimpleTraceInterceptor |
Known Direct Subclasses |
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.
Consider using CustomizableTraceInterceptor
for more
advanced needs.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.aop.interceptor.AbstractTraceInterceptor
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new SimpleTraceInterceptor with a static logger.
| |||||||||||
Create a new SimpleTraceInterceptor with dynamic or static logger,
according to the given flag.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return a description for the given method invocation.
| |||||||||||
Subclasses must override this method to perform any tracing around the
supplied
MethodInvocation . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.aop.interceptor.AbstractTraceInterceptor
| |||||||||||
From class
java.lang.Object
|
Create a new SimpleTraceInterceptor with a static logger.
Create a new SimpleTraceInterceptor with dynamic or static logger, according to the given flag.
useDynamicLogger | whether to use a dynamic logger or a static logger |
---|
Return a description for the given method invocation.
invocation | the invocation to describe |
---|
Subclasses must override this method to perform any tracing around the
supplied MethodInvocation
. Subclasses are responsible for
ensuring that the MethodInvocation
actually executes by
calling MethodInvocation.proceed()
.
By default, the passed-in Log
instance will have log level
"trace" enabled. Subclasses do not have to check for this again, unless
they overwrite the isInterceptorEnabled
method to modify
the default behavior.
logger | the Log to write trace messages to |
---|
MethodInvocation.proceed()
Throwable |
---|