public interface BeanProxyFactory
Proxy for a bean.
This requires to have camel-bean on the classpath.| Modifier and Type | Method and Description |
|---|---|
<T> T |
createProxy(Endpoint endpoint,
boolean binding,
Class<T>... interfaceClasses)
Creates a proxy bean facaded with the interfaces that when invoked will send the data as a message to a Camel endpoint.
|
<T> T createProxy(Endpoint endpoint, boolean binding, Class<T>... interfaceClasses) throws Exception
endpoint - the endpoint to send to when the proxy is invokedbinding - whether to use bean parameter binding which would be needed if invoking a bean method with multiple parametersinterfaceClasses - the interface(s) to use as bean facadeException - is thrown if error creating the proxyApache Camel