public class MulticastingInvoker<T> extends 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 behavior is recursive, so return values will
also be multicasting objects.Constructor and Description |
---|
MulticastingInvoker(Class<?>[] type,
ProxyFactory proxyFactory,
Object[] targets)
Construct a MulticastingInvoker.
|
Modifier and Type | Method and Description |
---|---|
Object |
invoke(Object proxy,
Method method,
Object[] args)
Invocation of a method of the proxied object.
|
T |
proxy()
Create a proxy for this Invoker.
|
public MulticastingInvoker(Class<?>[] type, ProxyFactory proxyFactory, Object[] targets)
type
- the implemented typesproxyFactory
- the ProxyFactory
to usetargets
- the target instances where the proxy delegates a callCopyright © 2005–2017 Codehaus. All rights reserved.