org.apache.camel.component.bean
Class ProxyHelper

java.lang.Object
  extended by org.apache.camel.component.bean.ProxyHelper

public final class ProxyHelper
extends Object

A helper class for creating proxies which delegate to Camel

Version:

Method Summary
protected static MethodInfoCache createMethodInfoCache(Endpoint endpoint)
           
static
<T> T
createProxy(Endpoint endpoint, Class<T>... interfaceClasses)
          Creates a Proxy which sends the exchange to the endpoint.
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)
          Creates a Proxy which sends the exchange to the endpoint.
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)
          Creates a Proxy which sends the exchange to the endpoint.
static
<T> T
createProxy(Endpoint endpoint, ClassLoader cl, Class<T> interfaceClass, MethodInfoCache methodCache)
          Creates a Proxy which sends the exchange to the endpoint.
static
<T> T
createProxy(Endpoint endpoint, Producer producer, Class<T>... interfaceClasses)
          Creates a Proxy which sends the exchange to the endpoint.
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, Producer producer, ClassLoader classLoader, Class<T>[] interfaces, MethodInfoCache methodCache)
          Creates a Proxy which sends the exchange to the endpoint.
protected static ClassLoader getClassLoader(Class<?>... interfaces)
          Returns the class loader of the first interface or throws IllegalArgumentException if there are no interfaces specified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createProxyObject

public static <T> T createProxyObject(Endpoint endpoint,
                                      Producer producer,
                                      ClassLoader classLoader,
                                      Class<T>[] interfaces,
                                      MethodInfoCache methodCache)
Creates a Proxy which sends the exchange to the endpoint.


createProxy

public static <T> T createProxy(Endpoint endpoint,
                                ClassLoader cl,
                                Class<T> interfaceClass,
                                MethodInfoCache methodCache)
                     throws Exception
Creates a Proxy which sends the exchange to the endpoint.

Throws:
Exception

createProxy

public static <T> T createProxy(Endpoint endpoint,
                                ClassLoader cl,
                                Class<T>[] interfaceClasses,
                                MethodInfoCache methodCache)
                     throws Exception
Creates a Proxy which sends the exchange to the endpoint.

Throws:
Exception

createProxy

public static <T> T createProxy(Endpoint endpoint,
                                ClassLoader cl,
                                Class<T> interfaceClass)
                     throws Exception
Creates a Proxy which sends the exchange to the endpoint.

Throws:
Exception

createProxy

public static <T> T createProxy(Endpoint endpoint,
                                ClassLoader cl,
                                Class<T>... interfaceClasses)
                     throws Exception
Creates a Proxy which sends the exchange to the endpoint.

Throws:
Exception

createProxy

public static <T> T createProxy(Endpoint endpoint,
                                Class<T> interfaceClass)
                     throws Exception
Creates a Proxy which sends the exchange to the endpoint.

Throws:
Exception

createProxy

public static <T> T createProxy(Endpoint endpoint,
                                Class<T>... interfaceClasses)
                     throws Exception
Creates a Proxy which sends the exchange to the endpoint.

Throws:
Exception

createProxy

public static <T> T createProxy(Endpoint endpoint,
                                Producer producer,
                                Class<T> interfaceClass)
                     throws Exception
Creates a Proxy which sends the exchange to the endpoint.

Throws:
Exception

createProxy

public static <T> T createProxy(Endpoint endpoint,
                                Producer producer,
                                Class<T>... interfaceClasses)
                     throws Exception
Creates a Proxy which sends the exchange to the endpoint.

Throws:
Exception

getClassLoader

protected static ClassLoader getClassLoader(Class<?>... interfaces)
Returns the class loader of the first interface or throws IllegalArgumentException if there are no interfaces specified


createMethodInfoCache

protected static MethodInfoCache createMethodInfoCache(Endpoint endpoint)


Apache CAMEL