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 StringARGUMENT_MAP_VARIABLE_NAMEstatic StringEXCEPTION_VARIABLE_NAMEstatic ExpressionParserEXPRESSION_PARSERstatic StringMETHOD_NAME_VARIABLE_NAMEstatic ExpressionRETURN_VALUE_EXPRESSIONstatic StringRETURN_VALUE_VARIABLE_NAME -
Constructor Summary
Constructors Constructor Description MethodAnnotationPublisherMetadataSource()MethodAnnotationPublisherMetadataSource(Set<Class<? extends Annotation>> annotationTypes) -
Method Summary
Modifier and Type Method Description StringgetChannelName(Method method)ExpressiongetExpressionForPayload(Method method)Map<String,Expression>getExpressionsForHeaders(Method method)voidsetChannelAttributeName(String channelAttributeName)
-
Field Details
-
Constructor Details
-
MethodAnnotationPublisherMetadataSource
public MethodAnnotationPublisherMetadataSource() -
MethodAnnotationPublisherMetadataSource
-
-
Method Details