public class Dispatching<T>
extends java.lang.Object
com.thoughtworks.proxy.toys.dispatch| Modifier and Type | Class and Description |
|---|---|
static class |
Dispatching.DispatchingBuild<T> |
static class |
Dispatching.DispatchingWith<T> |
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object[] |
delegates |
private java.lang.Class<?>[] |
types |
| Modifier | Constructor and Description |
|---|---|
private |
Dispatching(java.lang.Class<?>[] types) |
| Modifier and Type | Method and Description |
|---|---|
private T |
build(ProxyFactory factory) |
static <T> Dispatching.DispatchingWith<T> |
proxy(java.lang.Class<T> primaryType,
java.lang.Class<?>... types)
Creates a builder for proxy instances that allow delegation.
|
private java.lang.Class<?>[] types
private java.lang.Object[] delegates
public static <T> Dispatching.DispatchingWith<T> proxy(java.lang.Class<T> primaryType, java.lang.Class<?>... types)
primaryType - the primary type of the proxy that will not have to be cast totypes - the other types of the proxyprivate T build(ProxyFactory factory)