public class MethodNameMappingPublisherMetadataSource extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ARGUMENT_MAP_VARIABLE_NAME |
static String |
EXCEPTION_VARIABLE_NAME |
static String |
METHOD_NAME_VARIABLE_NAME |
static String |
RETURN_VALUE_VARIABLE_NAME |
Constructor and Description |
---|
MethodNameMappingPublisherMetadataSource(Map<String,String> payloadExpressionMap) |
Modifier and Type | Method and Description |
---|---|
String |
getChannelName(Method method)
Returns the channel name to which Messages should be published
for this particular method invocation.
|
Map<String,String> |
getHeaderExpressions(Method method)
Returns the map of expression strings to be evaluated for any headers
that should be set on the published Message.
|
String |
getPayloadExpression(Method method)
Returns the expression string to be evaluated for creating the Message
payload.
|
void |
setChannelMap(Map<String,String> channelMap) |
void |
setHeaderExpressionMap(Map<String,Map<String,String>> headerExpressionMap) |
public static final String METHOD_NAME_VARIABLE_NAME
public static final String ARGUMENT_MAP_VARIABLE_NAME
public static final String RETURN_VALUE_VARIABLE_NAME
public static final String EXCEPTION_VARIABLE_NAME
public void setHeaderExpressionMap(Map<String,Map<String,String>> headerExpressionMap)
public String getPayloadExpression(Method method)
method
- The Method.public Map<String,String> getHeaderExpressions(Method method)
method
- The Method.