public class Multicasting<T>
extends java.lang.Object
com.thoughtworks.proxy.toys.multicast| Modifier and Type | Class and Description |
|---|---|
static class |
Multicasting.MulticastingBuild<T> |
static class |
Multicasting.MulticastingWith<T> |
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object[] |
delegates |
private java.lang.Class<?>[] |
types |
| Modifier | Constructor and Description |
|---|---|
private |
Multicasting(java.lang.Class<?> primaryType,
java.lang.Class<?>... types) |
private |
Multicasting(java.lang.Object... delegates) |
| Modifier and Type | Method and Description |
|---|---|
private T |
build() |
private T |
build(ProxyFactory factory) |
private T |
buildWithNoTypesInput(ProxyFactory factory) |
static <T> Multicasting.MulticastingWith<T> |
proxy(java.lang.Class<T> primaryType,
java.lang.Class<?>... types)
Creates a factory for proxy instances delegating a call to multiple objects and managing the individual results.
|
static Multicasting.MulticastingBuild<Multicast> |
proxy(java.lang.Object... targets)
Creates a factory for proxy instances delegating a call to multiple objects and managing the individual results.
|
private java.lang.Class<?>[] types
private java.lang.Object[] delegates
private Multicasting(java.lang.Object... delegates)
private Multicasting(java.lang.Class<?> primaryType,
java.lang.Class<?>... types)
public static <T> Multicasting.MulticastingWith<T> proxy(java.lang.Class<T> primaryType, java.lang.Class<?>... types)
primaryType - the primary type implemented by the proxytypes - other types that are implemented by the proxypublic static Multicasting.MulticastingBuild<Multicast> proxy(java.lang.Object... targets)
targets - targets the target objectsprivate T build()
private T build(ProxyFactory factory)
private T buildWithNoTypesInput(ProxyFactory factory)