public class MethodInvocationProxyHandler<T> extends Object implements InvocationHandler
Constructor and Description |
---|
MethodInvocationProxyHandler(T object) |
Modifier and Type | Method and Description |
---|---|
List<MethodCall> |
getCallList()
Get the complete method call list.
|
List<MethodCall> |
getCallList(String methodName)
Get the call list for a specific method.
|
Map<String,List<MethodCall>> |
getCallMap()
Get the call map.
|
T |
getObject() |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
T |
newProxy(Class[] interfaces) |
public MethodInvocationProxyHandler(T object)
public T getObject()
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
public List<MethodCall> getCallList()
public List<MethodCall> getCallList(String methodName)
methodName
- The method name.public Map<String,List<MethodCall>> getCallMap()
call list
sorted by method name. Overloaded method
calls are bundled together.Copyright © 2020. All rights reserved.