|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.bull.javamelody.MonitoringProxy
public final class MonitoringProxy
Proxy de monitoring pour tout façade ayant une interface. Il est destiné à un compteur pour les statistiques d'exécutions de méthodes sur les "façades métiers" qui ne sont ni EJB 3 ni Spring. Il s'utilise comme ceci: facade = MonitoringProxy.createProxy(facade);
| Method Summary | ||
|---|---|---|
static
|
createProxy(T facade)
Création d'un proxy de monitoring pour une façade. |
|
static
|
createProxy(T facade,
String name)
Création d'un proxy de monitoring pour une façade, en spécifiant le nom qui sera affiché dans le monitoring. |
|
Object |
invoke(Object proxy,
Method method,
Object[] args)
Intercepte une exécution de méthode sur une façade. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> T createProxy(T facade)
T - Type de la façade (une interface en général).facade - Instance de la façade
public static <T> T createProxy(T facade,
String name)
T - Type de la façade (une interface en général).facade - Instance de la façadename - override of the interface name in the statistics
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
invoke in interface InvocationHandlerproxy - Objectmethod - Methodargs - Object[]
Throwable - t
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||