com.yammer.metrics.spring
Class TimedMethodInterceptor

java.lang.Object
  extended by com.yammer.metrics.spring.TimedMethodInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, org.springframework.core.Ordered, org.springframework.util.ReflectionUtils.MethodCallback

public class TimedMethodInterceptor
extends Object
implements org.aopalliance.intercept.MethodInterceptor, org.springframework.util.ReflectionUtils.MethodCallback, org.springframework.core.Ordered


Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
TimedMethodInterceptor(MetricsRegistry metrics, Class<?> targetClass, String scope)
           
 
Method Summary
 void doWith(Method method)
           
 int getOrder()
           
 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

TimedMethodInterceptor

public TimedMethodInterceptor(MetricsRegistry metrics,
                              Class<?> targetClass,
                              String scope)
Method Detail

invoke

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

doWith

public void doWith(Method method)
            throws IllegalArgumentException,
                   IllegalAccessException
Specified by:
doWith in interface org.springframework.util.ReflectionUtils.MethodCallback
Throws:
IllegalArgumentException
IllegalAccessException

getOrder

public int getOrder()
Specified by:
getOrder in interface org.springframework.core.Ordered


Copyright © 2012. All Rights Reserved.