org.springframework.integration.aop
Class MethodNameMappingExpressionSource
java.lang.Object
org.springframework.integration.aop.AbstractExpressionSource
org.springframework.integration.aop.MethodNameMappingExpressionSource
public class MethodNameMappingExpressionSource
- extends AbstractExpressionSource
- Since:
- 2.0
- Author:
- Mark Fisher
Method Summary |
java.lang.String[] |
getArgumentVariableNames(java.lang.reflect.Method method)
Returns the variable names to be associated with the intercepted method
invocation's argument array. |
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.lang.String[] |
getHeaderExpressions(java.lang.reflect.Method method)
Returns the array 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 |
setArgumentVariableNameMap(java.util.Map<java.lang.String,java.lang.String[]> argumentVariableNameMap)
|
void |
setChannelMap(java.util.Map<java.lang.String,java.lang.String> channelMap)
|
void |
setHeaderExpressionMap(java.util.Map<java.lang.String,java.lang.String[]> headerExpressionMap)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_METHOD_NAME_VARIABLE_NAME
public static final java.lang.String DEFAULT_METHOD_NAME_VARIABLE_NAME
- See Also:
- Constant Field Values
DEFAULT_ARGUMENT_MAP_VARIABLE_NAME
public static final java.lang.String DEFAULT_ARGUMENT_MAP_VARIABLE_NAME
- See Also:
- Constant Field Values
DEFAULT_RETURN_VALUE_VARIABLE_NAME
public static final java.lang.String DEFAULT_RETURN_VALUE_VARIABLE_NAME
- See Also:
- Constant Field Values
DEFAULT_EXCEPTION_VARIABLE_NAME
public static final java.lang.String DEFAULT_EXCEPTION_VARIABLE_NAME
- See Also:
- Constant Field Values
MethodNameMappingExpressionSource
public MethodNameMappingExpressionSource(java.util.Map<java.lang.String,java.lang.String> payloadExpressionMap)
setArgumentVariableNameMap
public void setArgumentVariableNameMap(java.util.Map<java.lang.String,java.lang.String[]> argumentVariableNameMap)
setHeaderExpressionMap
public void setHeaderExpressionMap(java.util.Map<java.lang.String,java.lang.String[]> headerExpressionMap)
setChannelMap
public void setChannelMap(java.util.Map<java.lang.String,java.lang.String> channelMap)
getArgumentVariableNames
public java.lang.String[] getArgumentVariableNames(java.lang.reflect.Method method)
- Returns the variable names to be associated with the intercepted method
invocation's argument array.
- Specified by:
getArgumentVariableNames
in class AbstractExpressionSource
getPayloadExpression
public java.lang.String getPayloadExpression(java.lang.reflect.Method method)
- Returns the expression string to be evaluated for creating the Message
payload.
- Specified by:
getPayloadExpression
in class AbstractExpressionSource
getHeaderExpressions
public java.lang.String[] getHeaderExpressions(java.lang.reflect.Method method)
- Returns the array of expression strings to be evaluated for any headers
that should be set on the published Message.
- Specified by:
getHeaderExpressions
in class AbstractExpressionSource
getChannelName
public java.lang.String getChannelName(java.lang.reflect.Method method)
- Returns the channel name to which Messages should be published
for this particular method invocation.
- Specified by:
getChannelName
in class AbstractExpressionSource