Class SimplePublisherMetadataSource
java.lang.Object
org.springframework.integration.aop.SimplePublisherMetadataSource
public class SimplePublisherMetadataSource extends Object
Simple implementation of
PublisherMetadataSource
that allows for
configuration of a single channel name, payload expression, and
array of header key=value expressions.- Since:
- 2.0
- Author:
- Mark Fisher, Artem Bilan
-
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 SimplePublisherMetadataSource()
-
Method Summary
Modifier and Type Method Description String
getChannelName(Method method)
Expression
getExpressionForPayload(Method method)
Map<String,Expression>
getExpressionsForHeaders(Method method)
void
setChannelName(String channelName)
void
setHeaderExpressions(Map<String,String> headerExpressions)
void
setPayloadExpression(String payloadExpression)
-
Field Details
-
Constructor Details
-
SimplePublisherMetadataSource
public SimplePublisherMetadataSource()
-
-
Method Details