info.joseluismartin.log
Class MethodTracer

java.lang.Object
  extended by info.joseluismartin.log.MethodTracer

public class MethodTracer
extends Object

A Log method tracer to use as around advice to avoid "in code" debug Enter/Exit method traces. Example:

Author:
Jose Luis Martin - (jlm@joseluismartin.info)

Constructor Summary
MethodTracer()
           
 
Method Summary
 Object traceMethod(org.aspectj.lang.ProceedingJoinPoint pjp)
          Simple Around Advice for trace in/out method execution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodTracer

public MethodTracer()
Method Detail

traceMethod

public Object traceMethod(org.aspectj.lang.ProceedingJoinPoint pjp)
                   throws Throwable
Simple Around Advice for trace in/out method execution

Parameters:
pjp - the joint point
Returns:
returned object.
Throws:
Throwable - for the method


Copyright © 2012 JDAL. All Rights Reserved.