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