|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.source.AbstractStopwatchSource<T>
org.javasimon.source.AbstractMethodStopwatchSource<org.aopalliance.intercept.MethodInvocation>
org.javasimon.spring.SpringStopwatchSource
public class SpringStopwatchSource
Monitor source providing stopwatches from Spring AOP method invocation.
| Constructor Summary | |
|---|---|
SpringStopwatchSource(Manager manager)
Constructor with specified Manager. |
|
| Method Summary | |
|---|---|
protected String |
getMeaningfulClassName(Class<?> targetClass)
|
protected String |
getMonitorName(org.aopalliance.intercept.MethodInvocation methodInvocation)
Returns monitor name for the given method invocation with Monitored.name()
and Monitored.suffix() applied as expected. |
protected Class<?> |
getTargetClass(org.aopalliance.intercept.MethodInvocation methodInvocation)
Get target class. |
protected Method |
getTargetMethod(org.aopalliance.intercept.MethodInvocation methodInvocation)
Get method being invoked. |
boolean |
isMonitored(org.aopalliance.intercept.MethodInvocation methodInvocation)
By default returns true because it is expected to be called from MonitoringInterceptor which means that the method call
should be monitored. |
| Methods inherited from class org.javasimon.source.AbstractMethodStopwatchSource |
|---|
cache, getMonitor, newCacheStopwatchSource |
| Methods inherited from class org.javasimon.source.AbstractStopwatchSource |
|---|
getManager, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpringStopwatchSource(Manager manager)
Manager.
manager - Simon manager used for producing Stopwatches| Method Detail |
|---|
protected final Class<?> getTargetClass(org.aopalliance.intercept.MethodInvocation methodInvocation)
getTargetClass in class AbstractMethodStopwatchSource<org.aopalliance.intercept.MethodInvocation>protected Method getTargetMethod(org.aopalliance.intercept.MethodInvocation methodInvocation)
getTargetMethod in class AbstractMethodStopwatchSource<org.aopalliance.intercept.MethodInvocation>methodInvocation - Method invocation
public boolean isMonitored(org.aopalliance.intercept.MethodInvocation methodInvocation)
true because it is expected to be called from MonitoringInterceptor which means that the method call
should be monitored. Pointcuts provided enough mechanism to decide whether the method is monitored or not, but this method can be overridden
if needed.
isMonitored in interface MonitorSource<org.aopalliance.intercept.MethodInvocation,Stopwatch>isMonitored in class AbstractStopwatchSource<org.aopalliance.intercept.MethodInvocation>methodInvocation - current method invocation
protected String getMonitorName(org.aopalliance.intercept.MethodInvocation methodInvocation)
Monitored.name()
and Monitored.suffix() applied as expected.
getMonitorName in class AbstractStopwatchSource<org.aopalliance.intercept.MethodInvocation>methodInvocation - current method invocation
protected String getMeaningfulClassName(Class<?> targetClass)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||