Package org.apache.camel.spi
Interface BeanProxyFactory
-
public interface BeanProxyFactory
A factory for creating aProxy
for a bean. This requires to have camel-bean on the classpath.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
FACTORY
static final String FACTORY
Service factory key.- See Also:
- Constant Field Values
-
-
Method Detail
-
createProxy
<T> T createProxy(Endpoint endpoint, boolean binding, Class<T>... interfaceClasses) throws Exception
Creates a proxy bean facaded 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
-
-