net.bull.javamelody
Class MonitoringInterceptor

java.lang.Object
  extended by net.bull.javamelody.MonitoringInterceptor

public class MonitoringInterceptor
extends java.lang.Object

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

Constructor Summary
MonitoringInterceptor()
          Constructeur.
 
Method Summary
 java.lang.Object intercept(javax.interceptor.InvocationContext context)
          Intercepte une exécution de méthode sur un ejb.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoringInterceptor

public MonitoringInterceptor()
Constructeur.

Method Detail

intercept

public java.lang.Object intercept(javax.interceptor.InvocationContext context)
                           throws java.lang.Exception
Intercepte une exécution de méthode sur un ejb.

Parameters:
context - InvocationContext
Returns:
Object
Throws:
java.lang.Exception - e


Copyright © 2008-2010 Emeric Vernat. All Rights Reserved.