public abstract class AbstractBeanProcessor
extends org.apache.camel.support.AsyncProcessorSupport
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,
org.apache.camel.CamelContext camelContext) |
AbstractBeanProcessor(Object pojo,
org.apache.camel.CamelContext camelContext,
ParameterMappingStrategy parameterMappingStrategy) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
Object |
getBean() |
protected BeanHolder |
getBeanHolder() |
Boolean |
getCache() |
String |
getMethod() |
protected org.apache.camel.Processor |
getProcessor() |
boolean |
isShorthandMethod() |
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
void |
setCache(Boolean cache) |
void |
setMethod(String method)
Sets the method name to use
|
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() |
build, doBuild, doInit, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public AbstractBeanProcessor(Object pojo, org.apache.camel.CamelContext camelContext, ParameterMappingStrategy parameterMappingStrategy)
public AbstractBeanProcessor(Object pojo, org.apache.camel.CamelContext camelContext)
public AbstractBeanProcessor(BeanHolder beanHolder)
public boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)
protected org.apache.camel.Processor getProcessor()
protected BeanHolder getBeanHolder()
public Object getBean()
public String getMethod()
public Boolean getCache()
public void setCache(Boolean cache)
public void setMethod(String method)
public boolean isShorthandMethod()
public void setShorthandMethod(boolean shorthandMethod)
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.AsyncProcessorSupport
Exception
Apache Camel