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.
CustomizableTraceInterceptor
| Access | Constructor and Description |
|---|---|
| public | |
| public | SimpleTraceInterceptor(boolean
whether to use a dynamic logger or a static logger useDynamicLogger)Create a new SimpleTraceInterceptor with dynamic or static logger, according to the given flag. |
| Modifier and Type | Method and Description |
|---|---|
| protected String | Returns: the descriptionthe invocation to describe invocation)Return a description for the given method invocation. |
| protected Object | invokeUnderTrace(MethodInvocation invocation, Log
the logger)Log to write trace messages toImplements abstract org. MethodInvocation.
|
| SimpleTraceInterceptor | back to summary |
|---|---|
| public SimpleTraceInterceptor() Create a new SimpleTraceInterceptor with a static logger. | |
| SimpleTraceInterceptor | back to summary |
|---|---|
| public SimpleTraceInterceptor(boolean useDynamicLogger) Create a new SimpleTraceInterceptor with dynamic or static logger, according to the given flag.
| |
| getInvocationDescription | back to summary |
|---|---|
| protected String getInvocationDescription(MethodInvocation invocation) Return a description for the given method invocation.
| |
| invokeUnderTrace | back to summary |
|---|---|
| protected Object invokeUnderTrace(MethodInvocation invocation, Log logger) throws Throwable Implements abstract org. Doc from org. Subclasses must override this method to perform any tracing around the
supplied By default, the passed-in | |