|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.thoughtworks.proxy.toys.multicast.Multicasting
Toy factory to create proxies delegating a call to multiple objects and managing the individual results.
com.thoughtworks.proxy.toys.multicast| Method Summary | |
static Object |
object(Class[] types,
ProxyFactory proxyFactory,
Object[] targets)
Generate a proxy for the specified types calling the methods on the given targets. |
static Object |
object(Class type,
ProxyFactory proxyFactory,
Object[] targets)
Generate a proxy for the specified type calling the methods on the given targets. |
static Object |
object(Object[] targets)
Generate a proxy that is calling the methods on the given targets using a StandardProxyFactory.
|
static Object |
object(ProxyFactory proxyFactory,
Object[] targets)
Generate a proxy that is calling the methods on the given targets. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Object object(Class[] types,
ProxyFactory proxyFactory,
Object[] targets)
Note, that the method will only return a proxy if necessary. If there is only one target instance and this instance implements all of the specified types, then there is no point in creating a proxy.
types - the types that are implemented by the proxyproxyFactory - the ProxyFactory to usetargets - the target objects
Multicast or the only target
public static Object object(Class type,
ProxyFactory proxyFactory,
Object[] targets)
Note, that the method will only return a proxy if necessary. If there is only one target instance and this instance implements the specified type, then there is no point in creating a proxy.
type - the type that is implemented by the proxyproxyFactory - the ProxyFactory to usetargets - the target objects
Multicast or the only target
public static Object object(ProxyFactory proxyFactory,
Object[] targets)
The type of the proxy is a combination of all interfaces implemented by all targets and their most common super
class (if supported by the ProxyFactory). Note, that the method will only return a proxy if necessary.
If there is only one target instance, then there is no point in creating a proxy.
proxyFactory - the ProxyFactory to usetargets - the target objects
Multicast or the only targetpublic static Object object(Object[] targets)
StandardProxyFactory.
The type of the proxy is a combination of all interfaces implemented by all targets. Note, that the method will only return a proxy if necessary. If there is only one target instance, then there is no point in creating a proxy.
targets - the target objects
Multicast or the only target
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||