org.perf4j.javalog.aop
Class TimingAspect
java.lang.Object
org.perf4j.aop.AbstractTimingAspect
org.perf4j.javalog.aop.TimingAspect
public class TimingAspect
- extends AbstractTimingAspect
This TimingAspect implementation uses java.util.logging to persist StopWatch log messages.
- Author:
- Alex Devine
Method Summary |
protected JavaLogStopWatch |
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 JavaLogStopWatch 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.