Class ExpressionMessageProducerSupport

All Implemented Interfaces:
Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, SmartInitializingSingleton, ApplicationContextAware, Lifecycle, Phased, SmartLifecycle, ExpressionCapable, MessageProducer, IntegrationPattern, NamedComponent, IntegrationInboundManagement, IntegrationManagement, ManageableLifecycle, ManageableSmartLifecycle, TrackableComponent
Direct Known Subclasses:
ApplicationEventListeningMessageProducer

public abstract class ExpressionMessageProducerSupport extends MessageProducerSupport
A MessageProducerSupport sub-class that provides payloadExpression evaluation with result as a payload for Message to send.
Since:
2.1
Author:
David Turanski, Artem Bilan, Gary Russell
  • Constructor Details

    • ExpressionMessageProducerSupport

      public ExpressionMessageProducerSupport()
  • Method Details

    • setPayloadExpression

      public void setPayloadExpression(Expression payloadExpression)
      Parameters:
      payloadExpression - the expression to use.
      Since:
      4.3
    • setPayloadExpressionString

      public void setPayloadExpressionString(String payloadExpression)
      Parameters:
      payloadExpression - the String in SpEL syntax.
      Since:
      4.3
    • setIntegrationEvaluationContext

      public void setIntegrationEvaluationContext(EvaluationContext evaluationContext)
    • onInit

      protected void onInit()
      Description copied from class: IntegrationObjectSupport
      Subclasses may implement this for initialization logic.
      Overrides:
      onInit in class MessageProducerSupport
    • evaluatePayloadExpression

      protected Object evaluatePayloadExpression(Object payload)