com.atlassian.confluence.util.profiling
Class JavaSimonMethodInterceptor

java.lang.Object
  extended by com.atlassian.confluence.util.profiling.JavaSimonMethodInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class JavaSimonMethodInterceptor
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor

A method interceptor that records the execution time of methods with Java Simon. The name of the stopwatch with calculated as the fully qualified class name concatenated with the method name. This resolution does not differentiate between overloaded method names. This limitation is accepted for the simplicity and speed on the implementation.


Constructor Summary
JavaSimonMethodInterceptor(org.javasimon.Manager manager)
           
 
Method Summary
 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaSimonMethodInterceptor

public JavaSimonMethodInterceptor(org.javasimon.Manager manager)
Method Detail

invoke

public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
                        throws java.lang.Throwable
Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
java.lang.Throwable


Copyright © 2003-2013 Atlassian. All Rights Reserved.