public final class MonitoringProxy extends Object implements InvocationHandler, Serializable
Modifier and Type | Method and Description |
---|---|
static <T> T |
createProxy(T facade)
Création d'un proxy de monitoring pour une façade.
|
protected static <T> T |
createProxy(T facade,
MonitoringProxy monitoringProxy) |
static <T> T |
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.
|
protected String |
getName() |
protected String |
getRequestName(Method method) |
Object |
invoke(Object proxy,
Method method,
Object[] args)
Intercepte une exécution de méthode sur une façade.
|
public static <T> T createProxy(T facade)
T
- Type de la façade (une interface en général).facade
- Instance de la façadepublic 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 statisticspublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
proxy
- Objectmethod
- Methodargs
- Object[]Throwable
- tprotected String getName()
protected static <T> T createProxy(T facade, MonitoringProxy monitoringProxy)
Copyright © 2008-2012 Emeric Vernat. All Rights Reserved.