public class CompositeInvocationHandlerImpl extends java.lang.Object implements CompositeInvocationHandler
Constructor and Description |
---|
CompositeInvocationHandlerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addInvocationHandler(java.lang.Class<?> interf,
java.lang.reflect.InvocationHandler handler)
Add an invocation handler for all methods on interface interf.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
void |
setDefaultHandler(java.lang.reflect.InvocationHandler handler)
Set the default invocation handler to use if none of the
invocation handlers added by calls to addInvocationHandler apply.
|
public void addInvocationHandler(java.lang.Class<?> interf, java.lang.reflect.InvocationHandler handler)
CompositeInvocationHandler
addInvocationHandler
in interface CompositeInvocationHandler
public void setDefaultHandler(java.lang.reflect.InvocationHandler handler)
CompositeInvocationHandler
setDefaultHandler
in interface CompositeInvocationHandler
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable