org.perf4j.log4j.aop
Class TimingAspect

java.lang.Object
  extended by org.perf4j.aop.AbstractTimingAspect
      extended by org.perf4j.log4j.aop.TimingAspect

public class TimingAspect
extends AbstractTimingAspect

This TimingAspect implementation uses Log4j to persist StopWatch log messages.

Author:
Alex Devine

Constructor Summary
TimingAspect()
           
 
Method Summary
protected  Log4JStopWatch newStopWatch(String loggerName, String levelName)
          Subclasses should implement this method to return a LoggingStopWatch that should be used to time the wrapped code block.
 
Methods inherited from class org.perf4j.aop.AbstractTimingAspect
doPerfLogging, evaluateJexl, getJexlExpression, getStopWatchMessage, getStopWatchTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimingAspect

public TimingAspect()
Method Detail

newStopWatch

protected Log4JStopWatch newStopWatch(String loggerName,
                                      String levelName)
Description copied from class: AbstractTimingAspect
Subclasses should implement this method to return a LoggingStopWatch that should be used to time the wrapped code block.

Specified by:
newStopWatch in class AbstractTimingAspect
Parameters:
loggerName - The name of the logger to use for persisting StopWatch messages.
levelName - The level at which the message should be logged.
Returns:
The new LoggingStopWatch.


Copyright © 2008-2009 perf4j.org. All Rights Reserved.