类 AbstractMonitoringInterceptor
java.lang.Object
infra.aop.interceptor.AbstractTraceInterceptor
infra.aop.interceptor.AbstractMonitoringInterceptor
- 所有已实现的接口:
Serializable,Advice,Interceptor,MethodInterceptor
- 直接已知子类:
PerformanceMonitorInterceptor
Base class for monitoring interceptors, such as performance monitors.
Provides configurable "prefix and "suffix" properties that help to
classify/group performance monitoring results.
In their AbstractTraceInterceptor.invokeUnderTrace(org.aopalliance.intercept.MethodInvocation, infra.logging.Logger) implementation, subclasses should call the
createInvocationTraceName(org.aopalliance.intercept.MethodInvocation) method to create a name for the given trace,
including information about the method invocation along with a prefix/suffix.
- 从以下版本开始:
- 3.0
- 作者:
- Rob Harrop, Juergen Hoeller, TODAY
- 另请参阅:
-
字段概要
字段从类继承的字段 infra.aop.interceptor.AbstractTraceInterceptor
defaultLogger -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected StringcreateInvocationTraceName(MethodInvocation invocation) Create aStringname for the givenMethodInvocationthat can be used for trace/logging purposes.protected StringReturn the text that will get appended to the trace data.protected StringReturn the text that will get prepended to the trace data.voidsetLogTargetClassInvocation(boolean logTargetClassInvocation) Set whether to log the invocation on the target class, if applicable (i.e. if the method is actually delegated to the target class).voidSet the text that will get appended to the trace data.voidSet the text that will get prepended to the trace data.
-
字段详细资料
-
prefix
-
suffix
-
logTargetClassInvocation
private boolean logTargetClassInvocation
-
-
构造器详细资料
-
AbstractMonitoringInterceptor
public AbstractMonitoringInterceptor()
-
-
方法详细资料
-
setPrefix
Set the text that will get appended to the trace data.Default is none.
-
getPrefix
Return the text that will get appended to the trace data. -
setSuffix
Set the text that will get prepended to the trace data.Default is none.
-
getSuffix
Return the text that will get prepended to the trace data. -
setLogTargetClassInvocation
public void setLogTargetClassInvocation(boolean logTargetClassInvocation) Set whether to log the invocation on the target class, if applicable (i.e. if the method is actually delegated to the target class).Default is "false", logging the invocation based on the proxy interface/class name.
-
createInvocationTraceName
Create aStringname for the givenMethodInvocationthat can be used for trace/logging purposes. This name is made up of the configured prefix, followed by the fully-qualified name of the method being invoked, followed by the configured suffix.
-