Package net.bull.javamelody
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 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
-
MonitoringGuiceInterceptor
public MonitoringGuiceInterceptor()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
-