|
Spring Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.channel.MapBasedChannelResolver
public class MapBasedChannelResolver
ChannelResolver
implementation that resolves MessageChannel
instances by matching the channel name against keys within a Map.
Constructor Summary | |
---|---|
MapBasedChannelResolver()
Empty constructor for use when providing the channel map via setChannelMap(Map) . |
|
MapBasedChannelResolver(Map<String,? extends MessageChannel> channelMap)
Create a ChannelResolver that uses the provided Map. |
Method Summary | |
---|---|
MessageChannel |
resolveChannelName(String channelName)
Return the MessageChannel for the given name. |
void |
setChannelMap(Map<String,? extends MessageChannel> channelMap)
Provide a map of channels to be used by this resolver. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapBasedChannelResolver()
setChannelMap(Map)
.
public MapBasedChannelResolver(Map<String,? extends MessageChannel> channelMap)
ChannelResolver
that uses the provided Map.
Each String key will resolve to the associated channel value.
Method Detail |
---|
public void setChannelMap(Map<String,? extends MessageChannel> channelMap)
public MessageChannel resolveChannelName(String channelName)
ChannelResolver
resolveChannelName
in interface ChannelResolver
|
Spring Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |