org.jtheque.core.spring.aspect
Class PhasesCounterAndLoggingAspect

java.lang.Object
  extended by org.jtheque.core.spring.aspect.PhasesCounterAndLoggingAspect

public final class PhasesCounterAndLoggingAspect
extends java.lang.Object

An AspectJ aspect to log the phases and calc the time needed.

Author:
Baptiste Wicht

Constructor Summary
PhasesCounterAndLoggingAspect()
           
 
Method Summary
 void run()
          A pointcut to the run method of the Phase.
 void startCounter(org.aspectj.lang.JoinPoint joinPoint)
          Start the counter before the run method.
 void stopCounter(org.aspectj.lang.JoinPoint joinPoint)
          Stop the counter after the run method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhasesCounterAndLoggingAspect

public PhasesCounterAndLoggingAspect()
Method Detail

run

public void run()
A pointcut to the run method of the Phase.


startCounter

public void startCounter(org.aspectj.lang.JoinPoint joinPoint)
Start the counter before the run method.

Parameters:
joinPoint - The join point of the advised method.

stopCounter

public void stopCounter(org.aspectj.lang.JoinPoint joinPoint)
Stop the counter after the run method.

Parameters:
joinPoint - The join point of the advised method.


Copyright © 2009 JTheque. All Rights Reserved.