public class XmlDefLoggingAspect {
private int m_level = 0;
public Object logMethod(JoinPoint joinPoint) throws Throwable {
MemberSignature signature = (MemberSignature) joinPoint.getSignature();
indent();
System.out.println(
"--> "
+ joinPoint.getTargetClass().getName()
+ "::"
+ signature.getName()
);
m_level++;
final Object result = joinPoint.proceed();
m_level--;
indent();
System.out.println(
"<-- "
+ joinPoint.getTargetClass().getName()
+ "::"
+ signature.getName()
);
return result;
}