Class ExpressionMessageProducerSupport

All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, ExpressionCapable, MessageProducer, IntegrationPattern, NamedComponent, ManageableLifecycle, ManageableSmartLifecycle, TrackableComponent

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
  • Constructor Details

    • ExpressionMessageProducerSupport

      public ExpressionMessageProducerSupport()
  • Method Details

    • setPayloadExpression

      public void setPayloadExpression(org.springframework.expression.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(org.springframework.expression.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)