net.bull.javamelody
Class MonitoringGuiceInterceptor

java.lang.Object
  extended by net.bull.javamelody.MonitoringGuiceInterceptor
All Implemented Interfaces:
java.io.Serializable, org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class MonitoringGuiceInterceptor
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor, java.io.Serializable

Method interceptor that measures the duration of the intercepted call using Google Guice. Inspired by Erik van Oosten (Java Simon, Licence LGPL)

Author:
Emeric Vernat
See Also:
Serialized Form

Constructor Summary
MonitoringGuiceInterceptor()
          Constructeur.
 
Method Summary
 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
          Performs method invocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoringGuiceInterceptor

public MonitoringGuiceInterceptor()
Constructeur.

Method Detail

invoke

public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
                        throws java.lang.Throwable
Performs method invocation.

Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Parameters:
invocation - method invocation
Returns:
return object from the method
Throws:
java.lang.Throwable - anything thrown by the method


Copyright © 2008-2010 Emeric Vernat. All Rights Reserved.