public class BeanRouter extends Object implements SAXVisitAfter, Consumer, ExecutionLifecycleInitializable, ExecutionLifecycleCleanable
| Constructor and Description |
|---|
BeanRouter() |
BeanRouter(org.apache.camel.CamelContext camelContext) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
consumes(Object object) |
void |
executeExecutionLifecycleCleanup(ExecutionContext executionContext) |
void |
executeExecutionLifecycleInitialize(ExecutionContext executionContext) |
void |
initialize() |
protected void |
sendBean(Object bean,
ExecutionContext execContext)
Send the bean to the target endpoint.
|
BeanRouter |
setBeanId(String beanId)
Set the beanId of the bean to be routed.
|
BeanRouter |
setCorrelationIdName(String correlationIdName) |
BeanRouter |
setCorrelationIdPattern(String correlationIdPattern)
Set the correlationId pattern used to generate correlationIds.
|
BeanRouter |
setToEndpoint(String toEndpoint)
Set the Camel endpoint to which the bean is to be routed.
|
void |
uninitialize() |
void |
visitAfter(SAXElement element,
ExecutionContext execContext) |
public BeanRouter()
public BeanRouter(org.apache.camel.CamelContext camelContext)
@Initialize public void initialize()
public BeanRouter setBeanId(String beanId)
beanId - the beanId to setpublic BeanRouter setToEndpoint(String toEndpoint)
toEndpoint - the toEndpoint to setpublic BeanRouter setCorrelationIdName(String correlationIdName)
public BeanRouter setCorrelationIdPattern(String correlationIdPattern)
correlationIdPattern - The pattern generator template.public void visitAfter(SAXElement element, ExecutionContext execContext) throws SmooksException, IOException
visitAfter in interface SAXVisitAfterSmooksExceptionIOExceptionprotected void sendBean(Object bean, ExecutionContext execContext)
bean - The bean to be sent.execContext - The execution context.@Uninitialize public void uninitialize()
public void executeExecutionLifecycleInitialize(ExecutionContext executionContext)
executeExecutionLifecycleInitialize in interface ExecutionLifecycleInitializablepublic void executeExecutionLifecycleCleanup(ExecutionContext executionContext)
executeExecutionLifecycleCleanup in interface ExecutionLifecycleCleanableCopyright © 2015. All rights reserved.