Class MethodAnnotationPublisherMetadataSource

java.lang.Object
org.springframework.integration.aop.MethodAnnotationPublisherMetadataSource

public class MethodAnnotationPublisherMetadataSource extends Object
An PublisherMetadataSource implementation that retrieves the channel name and expression strings from an annotation.
Since:
2.0
  • Field Details

    • METHOD_NAME_VARIABLE_NAME

      static final String METHOD_NAME_VARIABLE_NAME
      See Also:
    • ARGUMENT_MAP_VARIABLE_NAME

      static final String ARGUMENT_MAP_VARIABLE_NAME
      See Also:
    • RETURN_VALUE_VARIABLE_NAME

      static final String RETURN_VALUE_VARIABLE_NAME
      See Also:
    • EXCEPTION_VARIABLE_NAME

      static final String EXCEPTION_VARIABLE_NAME
      See Also:
    • EXPRESSION_PARSER

      static final org.springframework.expression.ExpressionParser EXPRESSION_PARSER
    • RETURN_VALUE_EXPRESSION

      static final org.springframework.expression.Expression RETURN_VALUE_EXPRESSION
  • Constructor Details

    • MethodAnnotationPublisherMetadataSource

      public MethodAnnotationPublisherMetadataSource()
    • MethodAnnotationPublisherMetadataSource

      public MethodAnnotationPublisherMetadataSource(Set<Class<? extends Annotation>> annotationTypes)
  • Method Details

    • setChannelAttributeName

      public void setChannelAttributeName(String channelAttributeName)
    • getChannelName

      public String getChannelName(Method method)
    • getExpressionForPayload

      public org.springframework.expression.Expression getExpressionForPayload(Method method)
    • getExpressionsForHeaders

      public Map<String,org.springframework.expression.Expression> getExpressionsForHeaders(Method method)