public class CountingProxy<T> extends Object implements InvocationHandler
| Modifier and Type | Field and Description |
|---|---|
private ConcurrentHashMap<Method,AtomicLong> |
calls |
private T |
delegate |
static boolean |
ENABLED |
private static ArrayList<CountingProxy<?>> |
proxies |
| Constructor and Description |
|---|
CountingProxy(T delegate) |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getProxy(Class<T> interf,
T delegate) |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
protected void |
print() |
public static final boolean ENABLED
private ConcurrentHashMap<Method,AtomicLong> calls
private static ArrayList<CountingProxy<?>> proxies
public CountingProxy(T delegate)