org.perf4j.commonslog.aop
Class TimingAspect
java.lang.Object
org.perf4j.aop.AgnosticTimingAspect
org.perf4j.aop.AbstractTimingAspect
org.perf4j.commonslog.aop.TimingAspect
public class TimingAspect
- extends AbstractTimingAspect
This TimingAspect implementation uses an Apache Commons Logging Log instance to persist StopWatch log messages.
- Author:
- Alex Devine
Method Summary |
protected CommonsLogStopWatch |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimingAspect
public TimingAspect()
newStopWatch
protected CommonsLogStopWatch 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-2011 perf4j.org. All Rights Reserved.