public class BeanRouterObserver extends Object implements BeanContextLifecycleObserver
BeanContextLifecycleObserver that will route
a specified bean to the configured endpoint.
| Constructor and Description |
|---|
BeanRouterObserver(BeanRouter beanRouter,
String beanId)
Sole contructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
conditionsMatch(BeanContextLifecycleEvent event) |
void |
onBeanLifecycleEvent(BeanContextLifecycleEvent event)
Will route to the endpoint if the BeanLifecycle is of type BeanLifecycle.REMOVE and
the beanId is equals to the beanId that was configured for this instance.
|
void |
setConditionEvaluator(ExecutionContextExpressionEvaluator conditionEvaluator)
Set the condition evaluator for performing the routing.
|
public BeanRouterObserver(BeanRouter beanRouter, String beanId)
beanRouter - The bean router instance to be used for routing beans.beanId - The beanId which is the beanId in the Smooks BeanContext.public void setConditionEvaluator(ExecutionContextExpressionEvaluator conditionEvaluator)
conditionEvaluator - The routing condition evaluator.public void onBeanLifecycleEvent(BeanContextLifecycleEvent event)
onBeanLifecycleEvent in interface BeanContextLifecycleObserverevent - The event.public boolean conditionsMatch(BeanContextLifecycleEvent event)
Copyright © 2020. All rights reserved.