public interface BeanProcessorFactory
Processor that can invoke a method on a bean and supporting using Camel bean parameter
bindings.
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 |
|---|---|
Processor |
createBeanProcessor(CamelContext camelContext,
Object bean,
Method method)
Creates the bean processor from the existing bean instance
|
Processor |
createBeanProcessor(CamelContext camelContext,
Object bean,
String beanType,
Class<?> beanClass,
String ref,
String method,
BeanScope scope)
Creates the bean processor from a given set of parameters that can refer to the bean via an existing bean, a
reference to a bean, or its class name etc.
|
static final String FACTORY
Processor createBeanProcessor(CamelContext camelContext, Object bean, Method method) throws Exception
camelContext - the camel contextbean - the beanmethod - the method to invokeException - is thrown if error creating the processorProcessor createBeanProcessor(CamelContext camelContext, Object bean, String beanType, Class<?> beanClass, String ref, String method, BeanScope scope) throws Exception
camelContext - the camel contextbean - the bean instancebeanType - or the bean class namebeanClass - or the bean classref - or bean reference to lookup the bean from the registrymethod - optional name of method to invokescope - the scope of the beanException - is thrown if error creating the processorApache Camel