Simple implementation of PublisherMetadataSource that allows for
configuration of a single channel name, payload expression, and
array of header key=value expressions.
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.
public void setChannelName(java.lang.String channelName)
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.
setPayloadExpression
public void setPayloadExpression(java.lang.String payloadExpression)
getPayloadExpression
public java.lang.String getPayloadExpression(java.lang.reflect.Method method)
Returns the expression string to be evaluated for creating the Message
payload.
setHeaderExpressions
public void setHeaderExpressions(java.util.Map<java.lang.String,java.lang.String> headerExpressions)
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.