public class MulticastingInvoker extends java.lang.Object implements Invoker
Invoker implementation that multicasts calls to multiple targets. Proxies generated by this class will
forward all method invocations to an array of underlying objects. The behaviour is recursive, so return values will
also be multicasting objects.| Constructor and Description |
|---|
MulticastingInvoker(java.lang.Class[] type,
ProxyFactory proxyFactory,
java.lang.Object[] targets)
Construct a MulticastingInvoker.
|
public MulticastingInvoker(java.lang.Class[] type,
ProxyFactory proxyFactory,
java.lang.Object[] targets)
type - the implemented typesproxyFactory - the ProxyFactory to usetargets - the target instances where the proxy delegates a callpublic java.lang.Object proxy()
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
Invoker