public class AgentHandler extends Object implements InvocationHandler
Modifier and Type | Field and Description |
---|---|
protected Object |
agent |
protected Map<Method,Method> |
agentMethods |
protected Class<?> |
type |
protected static String[] |
units |
Modifier | Constructor and Description |
---|---|
protected |
AgentHandler(Object agent) |
Modifier and Type | Method and Description |
---|---|
protected Method |
agentMethod(Method bridgeMethod) |
protected String |
humanReadable(long size) |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
static <I> I |
newHandler(Class<I> type,
Object agent) |
protected final Map<Method,Method> agentMethods
protected AgentHandler(Object agent)
public static <I> I newHandler(Class<I> type, Object agent)
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
protected String humanReadable(long size)
protected Method agentMethod(Method bridgeMethod) throws NoSuchMethodException, SecurityException
Copyright © 2018 Nuxeo. All rights reserved.