org.perf4j.commonslog.aop
Class EjbTimingAspect
java.lang.Object
org.perf4j.aop.AgnosticTimingAspect
org.perf4j.aop.AbstractEjbTimingAspect
org.perf4j.commonslog.aop.EjbTimingAspect
public class EjbTimingAspect
- extends AbstractEjbTimingAspect
This EjbTimingAspect implementation uses an Apache Commons Logging Log instance to persist StopWatch log messages.
To use this interceptor in your code, you should add this class name to the Interceptors
annotation on the EJB to be profiled.
- 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 |
EjbTimingAspect
public EjbTimingAspect()
newStopWatch
protected CommonsLogStopWatch newStopWatch(String loggerName,
String levelName)
- Description copied from class:
AbstractEjbTimingAspect
- Subclasses should implement this method to return a LoggingStopWatch that should be used to time the wrapped
code block.
- Specified by:
newStopWatch
in class AbstractEjbTimingAspect
- 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.