public abstract class AbstractBeanProcessor extends Object implements AsyncProcessor
Processor
which converts the inbound exchange to a method
invocation on a POJOConstructor and Description |
---|
AbstractBeanProcessor(BeanHolder beanHolder) |
AbstractBeanProcessor(Object pojo,
BeanInfo beanInfo) |
AbstractBeanProcessor(Object pojo,
CamelContext camelContext) |
AbstractBeanProcessor(Object pojo,
CamelContext camelContext,
ParameterMappingStrategy parameterMappingStrategy) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
Object |
getBean() |
protected BeanHolder |
getBeanHolder() |
String |
getMethod() |
protected Processor |
getProcessor() |
boolean |
isMultiParameterArray() |
boolean |
isShorthandMethod() |
void |
process(Exchange exchange)
Processes the message exchange
|
boolean |
process(Exchange exchange,
AsyncCallback callback)
Processes the message exchange.
|
void |
setMethod(String method)
Sets the method name to use
|
void |
setMultiParameterArray(boolean mpArray) |
void |
setShorthandMethod(boolean shorthandMethod)
Sets whether to support getter style method name, so you can
say the method is called 'name' but it will invoke the 'getName' method.
|
String |
toString() |
public AbstractBeanProcessor(Object pojo, BeanInfo beanInfo)
public AbstractBeanProcessor(Object pojo, CamelContext camelContext, ParameterMappingStrategy parameterMappingStrategy)
public AbstractBeanProcessor(Object pojo, CamelContext camelContext)
public AbstractBeanProcessor(BeanHolder beanHolder)
public void process(Exchange exchange) throws Exception
Processor
public boolean process(Exchange exchange, AsyncCallback callback)
AsyncProcessor
Processor.process(org.apache.camel.Exchange)
, but the caller supports having the exchange asynchronously processed.
If there was a failure processing then the caused Exception
would be set on the Exchange
.process
in interface AsyncProcessor
exchange
- the message exchangecallback
- the AsyncCallback
will be invoked when the processing of the exchange is completed.
If the exchange is completed synchronously, then the callback is also invoked synchronously.
The callback should therefore be careful of starting recursive loop.protected Processor getProcessor()
protected BeanHolder getBeanHolder()
public boolean isMultiParameterArray()
public void setMultiParameterArray(boolean mpArray)
public boolean isShorthandMethod()
public void setShorthandMethod(boolean shorthandMethod)
Apache Camel