public static class Multicasting.MulticastingBuild<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private Multicasting<T> |
multicasting |
| Modifier | Constructor and Description |
|---|---|
private |
MulticastingBuild(Multicasting<T> multicasting) |
private |
MulticastingBuild(java.lang.Object[] targets) |
| Modifier and Type | Method and Description |
|---|---|
T |
build() |
T |
build(ProxyFactory factory)
Generate a proxy for the specified types calling the methods on the given targets using the
StandardProxyFactory. |
private final Multicasting<T> multicasting
private MulticastingBuild(java.lang.Object[] targets)
private MulticastingBuild(Multicasting<T> multicasting)
public T build()
public T build(ProxyFactory factory)
StandardProxyFactory.
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.
factory - the factory used to generate the proxyMulticast or the only target