java.lang.Object | |||
↳ | org.springframework.aop.interceptor.AbstractTraceInterceptor | ||
↳ | org.springframework.aop.interceptor.AbstractMonitoringInterceptor | ||
↳ | org.springframework.aop.interceptor.PerformanceMonitorInterceptor |
Simple AOP Alliance MethodInterceptor
for performance monitoring.
This interceptor has no effect on the intercepted method call.
Uses a StopWatch
for the actual performance measuring.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.aop.interceptor.AbstractTraceInterceptor
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new PerformanceMonitorInterceptor with a static logger.
| |||||||||||
Create a new PerformanceMonitorInterceptor with a dynamic or static logger,
according to the given flag.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Subclasses must override this method to perform any tracing around the
supplied
MethodInvocation . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.aop.interceptor.AbstractMonitoringInterceptor
| |||||||||||
From class
org.springframework.aop.interceptor.AbstractTraceInterceptor
| |||||||||||
From class
java.lang.Object
|
Create a new PerformanceMonitorInterceptor with a static logger.
Create a new PerformanceMonitorInterceptor with a dynamic or static logger, according to the given flag.
useDynamicLogger | whether to use a dynamic logger or a static logger |
---|
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 |
---|