Class MonitoringSpringInterceptor

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

public class MonitoringSpringInterceptor extends Object implements org.aopalliance.intercept.MethodInterceptor, Serializable
Method interceptor that measures the duration of the intercepted call. Inspired by Erik van Oosten (Java Simon, Licence LGPL)
Author:
Emeric Vernat
See Also:
  • Constructor Details

    • MonitoringSpringInterceptor

      public MonitoringSpringInterceptor()
      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