public interface BeanProxyFactory
Proxy
for a bean.
This requires to have camel-bean on the classpath.Modifier and Type | Field and Description |
---|---|
static String |
FACTORY
Service factory key.
|
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.
|
static final String FACTORY
<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