|
|
|
@ -98,16 +98,12 @@ public abstract class AbstractMonitoringInterceptor extends AbstractTraceInterce |
|
|
|
* @see #setSuffix |
|
|
|
* @see #setSuffix |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
protected String createInvocationTraceName(MethodInvocation invocation) { |
|
|
|
protected String createInvocationTraceName(MethodInvocation invocation) { |
|
|
|
StringBuilder sb = new StringBuilder(getPrefix()); |
|
|
|
|
|
|
|
Method method = invocation.getMethod(); |
|
|
|
Method method = invocation.getMethod(); |
|
|
|
Class<?> clazz = method.getDeclaringClass(); |
|
|
|
Class<?> clazz = method.getDeclaringClass(); |
|
|
|
if (this.logTargetClassInvocation && clazz.isInstance(invocation.getThis())) { |
|
|
|
if (this.logTargetClassInvocation && clazz.isInstance(invocation.getThis())) { |
|
|
|
clazz = invocation.getThis().getClass(); |
|
|
|
clazz = invocation.getThis().getClass(); |
|
|
|
} |
|
|
|
} |
|
|
|
sb.append(clazz.getName()); |
|
|
|
return getPrefix() + clazz.getName() + '.' + method.getName() + getSuffix(); |
|
|
|
sb.append('.').append(method.getName()); |
|
|
|
|
|
|
|
sb.append(getSuffix()); |
|
|
|
|
|
|
|
return sb.toString(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|