org.springframework.integration.aop
Class MethodNameMappingExpressionSource

java.lang.Object
  extended by org.springframework.integration.aop.AbstractExpressionSource
      extended by org.springframework.integration.aop.MethodNameMappingExpressionSource

public class MethodNameMappingExpressionSource
extends AbstractExpressionSource

Since:
2.0
Author:
Mark Fisher

Field Summary
static java.lang.String DEFAULT_ARGUMENT_MAP_VARIABLE_NAME
           
static java.lang.String DEFAULT_EXCEPTION_VARIABLE_NAME
           
static java.lang.String DEFAULT_METHOD_NAME_VARIABLE_NAME
           
static java.lang.String DEFAULT_RETURN_VALUE_VARIABLE_NAME
           
 
Constructor Summary
MethodNameMappingExpressionSource(java.util.Map<java.lang.String,java.lang.String> payloadExpressionMap)
           
 
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 org.springframework.integration.aop.AbstractExpressionSource
discoverMethodParameterNames, getArgumentMapVariableName, getExceptionVariableName, getMethodNameVariableName, getReturnValueVariableName, setArgumentMapVariableName, setExceptionVariableName, setMethodNameVariableName, setReturnValueVariableName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

MethodNameMappingExpressionSource

public MethodNameMappingExpressionSource(java.util.Map<java.lang.String,java.lang.String> payloadExpressionMap)
Method Detail

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