Package org.apache.camel.spi
Interface BeanProxyFactory
public interface BeanProxyFactory
A factory for creating a
Proxy
for a bean.
This requires to have camel-bean on the classpath.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<T> T
createProxy
(Endpoint endpoint, boolean binding, Class<T>... interfaceClasses) Creates a proxy bean facade with the interfaces that when invoked will send the data as a message to a Camel endpoint.
-
Field Details
-
FACTORY
Service factory key.- See Also:
-
-
Method Details
-
createProxy
<T> T createProxy(Endpoint endpoint, boolean binding, Class<T>... interfaceClasses) throws Exception Creates a proxy bean facade with the interfaces that when invoked will send the data as a message to a Camel endpoint.- Parameters:
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 facade- Returns:
- the created bean proxy
- Throws:
Exception
- is thrown if error creating the proxy
-