org.glassfish.pfl.basic.proxy
Class CompositeInvocationHandlerImpl

java.lang.Object
  extended by org.glassfish.pfl.basic.proxy.CompositeInvocationHandlerImpl
All Implemented Interfaces:
Serializable, InvocationHandler, CompositeInvocationHandler

public class CompositeInvocationHandlerImpl
extends Object
implements CompositeInvocationHandler

See Also:
Serialized Form

Constructor Summary
CompositeInvocationHandlerImpl()
           
 
Method Summary
 void addInvocationHandler(Class<?> interf, InvocationHandler handler)
          Add an invocation handler for all methods on interface interf.
 Object invoke(Object proxy, Method method, Object[] args)
           
 void setDefaultHandler(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
 

Constructor Detail

CompositeInvocationHandlerImpl

public CompositeInvocationHandlerImpl()
Method Detail

addInvocationHandler

public void addInvocationHandler(Class<?> interf,
                                 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(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 Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2013 Oracle. All Rights Reserved.