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 | 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,
boolean cacheBean)
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.
|
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, boolean cacheBean) 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 invokecacheBean
- whether to cache lookup up the beanException
- is thrown if error creating the processorApache Camel