Class MonitoringGuiceInterceptor

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

public class MonitoringGuiceInterceptor extends Object implements org.aopalliance.intercept.MethodInterceptor, 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:
  • Constructor Details

    • MonitoringGuiceInterceptor

      public MonitoringGuiceInterceptor()
      Constructeur.
  • Method Details

    • invoke

      public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
      Performs method invocation.
      Specified by:
      invoke in interface org.aopalliance.intercept.MethodInterceptor
      Parameters:
      invocation - method invocation
      Returns:
      return object from the method
      Throws:
      Throwable - anything thrown by the method
    • getRequestName

      protected String getRequestName(org.aopalliance.intercept.MethodInvocation invocation)
      Determine request name for a method invocation.
      Parameters:
      invocation - the method invocation (not null)
      Returns:
      the request name for this invocation