Package net.bull.javamelody
Class MonitoringInterceptor
java.lang.Object
net.bull.javamelody.MonitoringInterceptor
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MonitoringAsynchronousCdiInterceptor,MonitoringCdiInterceptor,MonitoringTargetInterceptor
Intercepteur pour EJB 3 (Java EE 5+).
Il est destiné à un compteur pour les statistiques d'exécutions de méthodes sur les "façades métiers"
( @
Stateless, @Stateful ou @MessageDriven ).
Il peut être paramétré dans le fichier ejb-jar.xml pour certains ejb ou pour tous les ejb,
ou alors par l'annotation @Interceptors dans les sources java des implémentations d'ejb.- Author:
- Emeric Vernat
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetRequestName(InvocationContext context) Determine request name for an invocation context.intercept(InvocationContext context) Intercepte une exécution de méthode sur un ejb.
-
Constructor Details
-
MonitoringInterceptor
public MonitoringInterceptor()Constructeur.
-
-
Method Details
-
intercept
Intercepte une exécution de méthode sur un ejb.- Parameters:
context- InvocationContext- Returns:
- Object
- Throws:
Exception- e
-
getRequestName
Determine request name for an invocation context.- Parameters:
context- the invocation context (not null)- Returns:
- the request name for this invocation
-