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
- Author:
- Mark Fisher, Artem Bilan, Gareth Chapman, Cameron Mayfield, Chengchen Ji, Gary Russell
-
Field Summary
Fields Modifier and Type Field Description static String
ARGUMENT_MAP_VARIABLE_NAME
static String
EXCEPTION_VARIABLE_NAME
static ExpressionParser
EXPRESSION_PARSER
static String
METHOD_NAME_VARIABLE_NAME
static Expression
RETURN_VALUE_EXPRESSION
static String
RETURN_VALUE_VARIABLE_NAME
-
Constructor Summary
Constructors Constructor Description MethodAnnotationPublisherMetadataSource()
MethodAnnotationPublisherMetadataSource(Set<Class<? extends Annotation>> annotationTypes)
-
Method Summary
Modifier and Type Method Description String
getChannelName(Method method)
Expression
getExpressionForPayload(Method method)
Map<String,Expression>
getExpressionsForHeaders(Method method)
void
setChannelAttributeName(String channelAttributeName)
-
Field Details
-
Constructor Details
-
MethodAnnotationPublisherMetadataSource
public MethodAnnotationPublisherMetadataSource() -
MethodAnnotationPublisherMetadataSource
-
-
Method Details