org.springframework.integration.aop
Class MethodAnnotationPublisherMetadataSource
java.lang.Object
org.springframework.integration.aop.MethodAnnotationPublisherMetadataSource
public class MethodAnnotationPublisherMetadataSource
- extends java.lang.Object
An PublisherMetadataSource
implementation that retrieves the channel
name and expression strings from an annotation.
- Since:
- 2.0
- Author:
- Mark Fisher
Method Summary |
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 |
setChannelAttributeName(java.lang.String channelAttributeName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
METHOD_NAME_VARIABLE_NAME
public static final java.lang.String METHOD_NAME_VARIABLE_NAME
- See Also:
- Constant Field Values
ARGUMENT_MAP_VARIABLE_NAME
public static final java.lang.String ARGUMENT_MAP_VARIABLE_NAME
- See Also:
- Constant Field Values
RETURN_VALUE_VARIABLE_NAME
public static final java.lang.String RETURN_VALUE_VARIABLE_NAME
- See Also:
- Constant Field Values
EXCEPTION_VARIABLE_NAME
public static final java.lang.String EXCEPTION_VARIABLE_NAME
- See Also:
- Constant Field Values
MethodAnnotationPublisherMetadataSource
public MethodAnnotationPublisherMetadataSource()
MethodAnnotationPublisherMetadataSource
public MethodAnnotationPublisherMetadataSource(java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> annotationTypes)
setChannelAttributeName
public void setChannelAttributeName(java.lang.String channelAttributeName)
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.
getPayloadExpression
public java.lang.String getPayloadExpression(java.lang.reflect.Method method)
- Returns the expression string to be evaluated for creating the Message
payload.
getHeaderExpressions
public 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. The keys in the Map are
header names, the values are the expression strings.