org.perf4j.commonslog.aop
Class EjbTimingAspect

java.lang.Object
  extended by org.perf4j.aop.AgnosticTimingAspect
      extended by org.perf4j.aop.AbstractEjbTimingAspect
          extended by 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

Constructor Summary
EjbTimingAspect()
           
 
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 org.perf4j.aop.AbstractEjbTimingAspect
doPerfLogging
 
Methods inherited from class org.perf4j.aop.AgnosticTimingAspect
evaluateJexl, getJexlExpression, getStopWatchMessage, getStopWatchTag, runProfiledMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EjbTimingAspect

public EjbTimingAspect()
Method Detail

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.