Class ControlBusMessageProcessor
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.handler.AbstractMessageProcessor<Object>
org.springframework.integration.handler.ControlBusMessageProcessor
- All Implemented Interfaces:
Aware,BeanFactoryAware,InitializingBean,MessageProcessor<Object>,IntegrationPattern
public class ControlBusMessageProcessor
extends AbstractMessageProcessor<Object>
implements IntegrationPattern
A MessageProcessor implementation that expects a Control Bus command as a request message.
When processing, it evaluates a SpEL expression associated with requested command,
essentially target bean method invocation.
The arguments for the command must be provided
in the IntegrationMessageHeaderAccessor.CONTROL_BUS_ARGUMENTS message header.
- Since:
- 6.4
- Author:
- Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.util.AbstractExpressionEvaluator
EXPRESSION_PARSER, logger -
Constructor Summary
ConstructorsConstructorDescriptionControlBusMessageProcessor(ControlBusCommandRegistry controlBusCommandRegistry) Create an instance based on the providedControlBusCommandRegistry. -
Method Summary
Modifier and TypeMethodDescriptionReturn a pattern type this component implements.protected voidonInit()processMessage(Message<?> message) Process the Message and return a value (or null).Methods inherited from class org.springframework.integration.util.AbstractExpressionEvaluator
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionService, setSimpleEvaluationContext
-
Constructor Details
-
ControlBusMessageProcessor
public ControlBusMessageProcessor() -
ControlBusMessageProcessor
Create an instance based on the providedControlBusCommandRegistry.- Parameters:
controlBusCommandRegistry- theControlBusCommandRegistrywith commands to execute.
-
-
Method Details
-
getIntegrationPatternType
Description copied from interface:IntegrationPatternReturn a pattern type this component implements.- Specified by:
getIntegrationPatternTypein interfaceIntegrationPattern- Returns:
- the
IntegrationPatternTypethis component implements.
-
onInit
protected void onInit()- Overrides:
onInitin classAbstractExpressionEvaluator
-
processMessage
Description copied from interface:MessageProcessorProcess the Message and return a value (or null).- Specified by:
processMessagein interfaceMessageProcessor<Object>- Specified by:
processMessagein classAbstractMessageProcessor<Object>- Parameters:
message- The message to process.- Returns:
- The result.
-