From 38c05ec796c7b366c35522110801df5ecda91d50 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Wed, 24 Dec 2014 11:00:50 -0500 Subject: [PATCH] INT-3590: Fix Router Documentation JIRA: https://jira.spring.io/browse/INT-3590 --- src/reference/docbook/router.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/reference/docbook/router.xml b/src/reference/docbook/router.xml index a8f8acee34..d1382b5c65 100644 --- a/src/reference/docbook/router.xml +++ b/src/reference/docbook/router.xml @@ -420,7 +420,7 @@ mappings. - + @@ -910,9 +910,9 @@ public List route(@Header("orderStatus") OrderStatus status)]]>channel name. - In Spring Integration 2.0 the router hierarchy underwent significant refactoring, so that now any router that is a subclass of the - AbstractMessageRouter (which includes all framework defined routers) is a Dynamic Router simply because the - channelIdentiferMap is defined at the AbstractMessageRouter level. That map's setter method is + Any router that is a subclass of the + AbstractMappingMessageRouter (which includes most framework defined routers) is a Dynamic Router simply because the + channelMapping is defined at the AbstractMappingMessageRouter level. That map's setter method is exposed as a public method along with 'setChannelMapping' and 'removeChannelMapping' methods. These allow you to change/add/remove router mappings at runtime as long as you have a reference to the router itself. It also means that you could expose these same configuration options via JMX (see ) or the Spring Integration ControlBus (see ) functionality.  @@ -937,11 +937,11 @@ public List route(@Header("orderStatus") OrderStatus status)]]> - public void setChannelMapping(String channelIdentifier, String channelName) - + public void setChannelMapping(String key, String channelName) - will allow you to add a new or modify an existing mapping between channel identifier and channel name - public void removeChannelMapping(String channelIdentifier) - + public void removeChannelMapping(String key) - will allow you to remove a particular channel mapping, thus disconnecting the relationship between channel identifier and channel name