org.glassfish.pfl.basic.proxy
Class CompositeInvocationHandlerImpl
java.lang.Object
org.glassfish.pfl.basic.proxy.CompositeInvocationHandlerImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.reflect.InvocationHandler, CompositeInvocationHandler
public class CompositeInvocationHandlerImpl
- extends java.lang.Object
- implements CompositeInvocationHandler
- See Also:
- Serialized Form
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeInvocationHandlerImpl
public CompositeInvocationHandlerImpl()
addInvocationHandler
public void addInvocationHandler(java.lang.Class<?> interf,
java.lang.reflect.InvocationHandler handler)
- Description copied from interface:
CompositeInvocationHandler
- Add an invocation handler for all methods on interface interf.
- Specified by:
addInvocationHandler in interface CompositeInvocationHandler
setDefaultHandler
public void setDefaultHandler(java.lang.reflect.InvocationHandler handler)
- Description copied from interface:
CompositeInvocationHandler
- Set the default invocation handler to use if none of the
invocation handlers added by calls to addInvocationHandler apply.
- Specified by:
setDefaultHandler in interface CompositeInvocationHandler
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable