Spring Integration

org.springframework.integration.aop
Class MethodNameMappingPublisherMetadataSource

java.lang.Object
  extended by org.springframework.integration.aop.MethodNameMappingPublisherMetadataSource

public class MethodNameMappingPublisherMetadataSource
extends Object

Since:
2.0
Author:
Mark Fisher

Field Summary
static String ARGUMENT_MAP_VARIABLE_NAME
           
static String EXCEPTION_VARIABLE_NAME
           
static String METHOD_NAME_VARIABLE_NAME
           
static String RETURN_VALUE_VARIABLE_NAME
           
 
Constructor Summary
MethodNameMappingPublisherMetadataSource(Map<String,String> payloadExpressionMap)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METHOD_NAME_VARIABLE_NAME

public static final String METHOD_NAME_VARIABLE_NAME
See Also:
Constant Field Values

ARGUMENT_MAP_VARIABLE_NAME

public static final String ARGUMENT_MAP_VARIABLE_NAME
See Also:
Constant Field Values

RETURN_VALUE_VARIABLE_NAME

public static final String RETURN_VALUE_VARIABLE_NAME
See Also:
Constant Field Values

EXCEPTION_VARIABLE_NAME

public static final String EXCEPTION_VARIABLE_NAME
See Also:
Constant Field Values
Constructor Detail

MethodNameMappingPublisherMetadataSource

public MethodNameMappingPublisherMetadataSource(Map<String,String> payloadExpressionMap)
Method Detail

setHeaderExpressionMap

public void setHeaderExpressionMap(Map<String,Map<String,String>> headerExpressionMap)

setChannelMap

public void setChannelMap(Map<String,String> channelMap)

getPayloadExpression

public String getPayloadExpression(Method method)
Returns the expression string to be evaluated for creating the Message payload.


getHeaderExpressions

public 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. The keys in the Map are header names, the values are the expression strings.


getChannelName

public String getChannelName(Method method)
Returns the channel name to which Messages should be published for this particular method invocation.


Spring Integration

Copyright © 2010. All Rights Reserved.