Package net.bull.javamelody
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetRequestName(org.aopalliance.intercept.MethodInvocation invocation) Determine request name for a method invocation.invoke(org.aopalliance.intercept.MethodInvocation invocation) Performs method invocation.
-
Constructor Details
-
MonitoringSpringInterceptor
public MonitoringSpringInterceptor()Constructeur.
-
-
Method Details
-
invoke
Performs method invocation.- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Parameters:
invocation- method invocation- Returns:
- return object from the method
- Throws:
Throwable- anything thrown by the method
-
getRequestName
Determine request name for a method invocation.- Parameters:
invocation- the method invocation (not null)- Returns:
- the request name for this invocation
-