public class BeanProcessor
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.AsyncProcessor
Constructor and Description |
---|
BeanProcessor(BeanHolder beanHolder) |
BeanProcessor(Object pojo,
BeanInfo beanInfo) |
BeanProcessor(Object pojo,
org.apache.camel.CamelContext camelContext) |
BeanProcessor(Object pojo,
org.apache.camel.CamelContext camelContext,
ParameterMappingStrategy parameterMappingStrategy) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
Object |
getBean() |
BeanHolder |
getBeanHolder() |
String |
getMethod() |
org.apache.camel.Processor |
getProcessor() |
org.apache.camel.BeanScope |
getScope() |
boolean |
isShorthandMethod() |
void |
process(org.apache.camel.Exchange exchange) |
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
CompletableFuture<org.apache.camel.Exchange> |
processAsync(org.apache.camel.Exchange exchange) |
void |
setMethod(String method) |
void |
setScope(org.apache.camel.BeanScope scope) |
void |
setShorthandMethod(boolean shorthandMethod) |
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 BeanProcessor(Object pojo, org.apache.camel.CamelContext camelContext, ParameterMappingStrategy parameterMappingStrategy)
public BeanProcessor(Object pojo, org.apache.camel.CamelContext camelContext)
public BeanProcessor(BeanHolder beanHolder)
public void process(org.apache.camel.Exchange exchange) throws Exception
process
in interface org.apache.camel.Processor
Exception
public boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)
process
in interface org.apache.camel.AsyncProcessor
public CompletableFuture<org.apache.camel.Exchange> processAsync(org.apache.camel.Exchange exchange)
processAsync
in interface org.apache.camel.AsyncProcessor
public org.apache.camel.Processor getProcessor()
public BeanHolder getBeanHolder()
public Object getBean()
public String getMethod()
public void setMethod(String method)
public org.apache.camel.BeanScope getScope()
public void setScope(org.apache.camel.BeanScope scope)
public boolean isShorthandMethod()
public void setShorthandMethod(boolean shorthandMethod)
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.service.ServiceSupport
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.service.ServiceSupport
Exception
Apache Camel