public final class ProxyCombiner
extends java.lang.Object
combine(Class, Object...).| Modifier and Type | Method | Description |
|---|---|---|
static <T> T |
combine(java.lang.Class<T> combinedProxyInterface,
java.lang.Object... proxies) |
Combine two or more proxies which together comprise a single proxy
interface.
|
public static <T> T combine(java.lang.Class<T> combinedProxyInterface,
java.lang.Object... proxies)
extends
multiple other protocol interfaces. The returned proxy will implement
all of the methods of the combined proxy interface, delegating calls
to which proxy implements that method. If multiple proxies implement the
same method, the first in the list will be used for delegation.
This will check that every method on the combined interface is implemented by at least one of the supplied proxy objects.
T - The type of the proxy that will be returned.combinedProxyInterface - The interface of the combined proxy.proxies - The proxies which should be used as delegates.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.