public final class ProxyHelper extends Object
Modifier and Type | Method and Description |
---|---|
protected static MethodInfoCache |
createMethodInfoCache(Endpoint endpoint) |
static <T> T |
createProxy(Endpoint endpoint,
boolean binding,
Class<T>... interfaceClasses)
Creates a Proxy which sends the exchange to the endpoint.
|
static <T> T |
createProxy(Endpoint endpoint,
boolean binding,
ClassLoader cl,
Class<T>... interfaceClasses)
Creates a Proxy which sends the exchange to the endpoint.
|
static <T> T |
createProxy(Endpoint endpoint,
boolean binding,
ClassLoader cl,
Class<T>[] interfaceClasses,
MethodInfoCache methodCache)
Creates a Proxy which sends the exchange to the endpoint.
|
static <T> T |
createProxy(Endpoint endpoint,
boolean binding,
ClassLoader cl,
Class<T> interfaceClass,
MethodInfoCache methodCache)
Creates a Proxy which sends the exchange to the endpoint.
|
static <T> T |
createProxy(Endpoint endpoint,
boolean binding,
Producer producer,
Class<T>... interfaceClasses)
Creates a Proxy which sends the exchange to the endpoint.
|
static <T> T |
createProxy(Endpoint endpoint,
Class<T>... interfaceClasses)
Deprecated.
use the same method name with binding as parameter
|
static <T> T |
createProxy(Endpoint endpoint,
Class<T> interfaceClass)
Creates a Proxy which sends the exchange to the endpoint.
|
static <T> T |
createProxy(Endpoint endpoint,
ClassLoader cl,
Class<T>... interfaceClasses)
Deprecated.
use the same method name with binding as parameter
|
static <T> T |
createProxy(Endpoint endpoint,
ClassLoader cl,
Class<T> interfaceClass)
Creates a Proxy which sends the exchange to the endpoint.
|
static <T> T |
createProxy(Endpoint endpoint,
ClassLoader cl,
Class<T>[] interfaceClasses,
MethodInfoCache methodCache)
Deprecated.
use the same method name with binding as parameter
|
static <T> T |
createProxy(Endpoint endpoint,
ClassLoader cl,
Class<T> interfaceClass,
MethodInfoCache methodCache)
Deprecated.
use the same method name with binding as parameter
|
static <T> T |
createProxy(Endpoint endpoint,
Producer producer,
Class<T>... interfaceClasses)
Deprecated.
use the same method name with binding as parameter
|
static <T> T |
createProxy(Endpoint endpoint,
Producer producer,
Class<T> interfaceClass)
Creates a Proxy which sends the exchange to the endpoint.
|
static <T> T |
createProxyObject(Endpoint endpoint,
boolean binding,
Producer producer,
ClassLoader classLoader,
Class<T>[] interfaces,
MethodInfoCache methodCache)
Creates a Proxy which sends the exchange to the endpoint.
|
static <T> T |
createProxyObject(Endpoint endpoint,
Producer producer,
ClassLoader classLoader,
Class<T>[] interfaces,
MethodInfoCache methodCache)
Deprecated.
use the same method name with binding as parameter
|
protected static ClassLoader |
getClassLoader(Class<?>... interfaces)
Returns the class loader of the first interface or throws
IllegalArgumentException if there are no interfaces specified |
@Deprecated public static <T> T createProxyObject(Endpoint endpoint, Producer producer, ClassLoader classLoader, Class<T>[] interfaces, MethodInfoCache methodCache)
public static <T> T createProxyObject(Endpoint endpoint, boolean binding, Producer producer, ClassLoader classLoader, Class<T>[] interfaces, MethodInfoCache methodCache)
@Deprecated public static <T> T createProxy(Endpoint endpoint, ClassLoader cl, Class<T> interfaceClass, MethodInfoCache methodCache) throws Exception
Exception
public static <T> T createProxy(Endpoint endpoint, boolean binding, ClassLoader cl, Class<T> interfaceClass, MethodInfoCache methodCache) throws Exception
Exception
@Deprecated public static <T> T createProxy(Endpoint endpoint, ClassLoader cl, Class<T>[] interfaceClasses, MethodInfoCache methodCache) throws Exception
Exception
public static <T> T createProxy(Endpoint endpoint, boolean binding, ClassLoader cl, Class<T>[] interfaceClasses, MethodInfoCache methodCache) throws Exception
Exception
public static <T> T createProxy(Endpoint endpoint, ClassLoader cl, Class<T> interfaceClass) throws Exception
Exception
@Deprecated public static <T> T createProxy(Endpoint endpoint, ClassLoader cl, Class<T>... interfaceClasses) throws Exception
Exception
public static <T> T createProxy(Endpoint endpoint, boolean binding, ClassLoader cl, Class<T>... interfaceClasses) throws Exception
Exception
public static <T> T createProxy(Endpoint endpoint, Class<T> interfaceClass) throws Exception
Exception
@Deprecated public static <T> T createProxy(Endpoint endpoint, Class<T>... interfaceClasses) throws Exception
Exception
public static <T> T createProxy(Endpoint endpoint, boolean binding, Class<T>... interfaceClasses) throws Exception
Exception
public static <T> T createProxy(Endpoint endpoint, Producer producer, Class<T> interfaceClass) throws Exception
Exception
@Deprecated public static <T> T createProxy(Endpoint endpoint, Producer producer, Class<T>... interfaceClasses) throws Exception
Exception
public static <T> T createProxy(Endpoint endpoint, boolean binding, Producer producer, Class<T>... interfaceClasses) throws Exception
Exception
protected static ClassLoader getClassLoader(Class<?>... interfaces)
IllegalArgumentException
if there are no interfaces specifiedprotected static MethodInfoCache createMethodInfoCache(Endpoint endpoint)
Apache Camel