Class MethodAnnotationPublisherMetadataSource
java.lang.Object
org.springframework.integration.aop.MethodAnnotationPublisherMetadataSource
public class MethodAnnotationPublisherMetadataSource
extends java.lang.Object
An
PublisherMetadataSource
implementation that retrieves the channel
name and expression strings from an annotation.- Since:
- 2.0
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ARGUMENT_MAP_VARIABLE_NAME
static java.lang.String
EXCEPTION_VARIABLE_NAME
static org.springframework.expression.ExpressionParser
EXPRESSION_PARSER
static java.lang.String
METHOD_NAME_VARIABLE_NAME
static org.springframework.expression.Expression
RETURN_VALUE_EXPRESSION
static java.lang.String
RETURN_VALUE_VARIABLE_NAME
-
Constructor Summary
Constructors Constructor Description MethodAnnotationPublisherMetadataSource()
MethodAnnotationPublisherMetadataSource(java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> annotationTypes)
-
Method Summary
Modifier and Type Method Description java.lang.String
getChannelName(java.lang.reflect.Method method)
org.springframework.expression.Expression
getExpressionForPayload(java.lang.reflect.Method method)
java.util.Map<java.lang.String,org.springframework.expression.Expression>
getExpressionsForHeaders(java.lang.reflect.Method method)
void
setChannelAttributeName(java.lang.String channelAttributeName)
-
Field Details
-
METHOD_NAME_VARIABLE_NAME
public static final java.lang.String METHOD_NAME_VARIABLE_NAME- See Also:
- Constant Field Values
-
ARGUMENT_MAP_VARIABLE_NAME
public static final java.lang.String ARGUMENT_MAP_VARIABLE_NAME- See Also:
- Constant Field Values
-
RETURN_VALUE_VARIABLE_NAME
public static final java.lang.String RETURN_VALUE_VARIABLE_NAME- See Also:
- Constant Field Values
-
EXCEPTION_VARIABLE_NAME
public static final java.lang.String EXCEPTION_VARIABLE_NAME- See Also:
- Constant Field Values
-
EXPRESSION_PARSER
public static final org.springframework.expression.ExpressionParser EXPRESSION_PARSER -
RETURN_VALUE_EXPRESSION
public static final org.springframework.expression.Expression RETURN_VALUE_EXPRESSION
-
-
Constructor Details
-
MethodAnnotationPublisherMetadataSource
public MethodAnnotationPublisherMetadataSource() -
MethodAnnotationPublisherMetadataSource
public MethodAnnotationPublisherMetadataSource(java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> annotationTypes)
-
-
Method Details
-
setChannelAttributeName
public void setChannelAttributeName(java.lang.String channelAttributeName) -
getChannelName
public java.lang.String getChannelName(java.lang.reflect.Method method) -
getExpressionForPayload
public org.springframework.expression.Expression getExpressionForPayload(java.lang.reflect.Method method) -
getExpressionsForHeaders
public java.util.Map<java.lang.String,org.springframework.expression.Expression> getExpressionsForHeaders(java.lang.reflect.Method method)
-