public abstract class AbstractEjbTimingAspect extends AgnosticTimingAspect
newStopWatch(java.lang.String, java.lang.String)
method to use their logging framework of choice
(e.g. log4j or java.logging) to persist the StopWatch log message.Constructor and Description |
---|
AbstractEjbTimingAspect() |
Modifier and Type | Method and Description |
---|---|
Object |
doPerfLogging(javax.interceptor.InvocationContext ctx)
This is the interceptor that runs the target method, surrounding it with stop watch start and stop calls.
|
protected abstract LoggingStopWatch |
newStopWatch(String loggerName,
String levelName)
Subclasses should implement this method to return a LoggingStopWatch that should be used to time the wrapped
code block.
|
evaluateJexl, getJexlExpression, getStopWatchMessage, getStopWatchTag, runProfiledMethod
public Object doPerfLogging(javax.interceptor.InvocationContext ctx) throws Exception
ctx
- The InvocationContext will be passed in by the Java EE server.Exception
- Any exceptions thrown by the executed method will bubble up.protected abstract LoggingStopWatch newStopWatch(String loggerName, String levelName)
loggerName
- The name of the logger to use for persisting StopWatch messages.levelName
- The level at which the message should be logged.Copyright © 2008–2015 jperf. All rights reserved.