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) |
Modifier and Type | Method and Description |
---|---|
protected void |
doInit() |
protected void |
doShutdown() |
protected void |
doStart() |
protected void |
doStop() |
Object |
getBean() |
protected BeanHolder |
getBeanHolder() |
String |
getMethod() |
protected org.apache.camel.Processor |
getProcessor() |
org.apache.camel.BeanScope |
getScope() |
boolean |
isShorthandMethod() |
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
void |
setMethod(String method)
Sets the method name to use
|
void |
setScope(org.apache.camel.BeanScope scope) |
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, doFail, doLifecycleChange, doResume, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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 org.apache.camel.BeanScope getScope()
public void setScope(org.apache.camel.BeanScope scope)
public void setMethod(String method)
public boolean isShorthandMethod()
public void setShorthandMethod(boolean shorthandMethod)
protected void doInit() throws Exception
doInit
in class org.apache.camel.support.service.BaseService
Exception
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.AsyncProcessorSupport
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.AsyncProcessorSupport
Exception
Apache Camel