/** * Create a <code>String</code> name for the given <code>MethodInvocation</code> * that 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. * @see #setPrefix * @see #setSuffix */ protected String createInvocationTraceName(MethodInvocation invocation) { StringBuffer sb = new StringBuffer(getPrefix()); sb.append(invocation.getMethod().getDeclaringClass().getName()); sb.append('.').append(invocation.getMethod().getName()); sb.append(getSuffix()); return sb.toString(); }