diff --git a/src/docbkx/channel.xml b/src/docbkx/channel.xml
index 2fac535a07..efc5c0e280 100644
--- a/src/docbkx/channel.xml
+++ b/src/docbkx/channel.xml
@@ -530,31 +530,34 @@ public Message> receive(final PollableChannel> channel) { ... }]]>would not be the most efficient way. The better way would be to configure interceptors globally and apply
- them on multiple channels in one shot. Spring Integration provides capabilities to configure Global Interceptor Chains
+ them on multiple channels in one shot. Spring Integration provides capabilities to configure Global Interceptors
and apply them on multiple channels.
Look at the example below:
-
+
-
-]]>
- <channel-interceptor-chain> element will assemble the chain of interceptors and will apply them on all the
- channels defined in the <channel-name-patter> attribute. In the above case the two interceptors that are defined
- within the chain are going to be applied on 'foo' channel and all other channels that begin with 'bar' and 'input'.
- The <order> attribute allows you to manage the place where this interceptor chain will be injected.
+]]>
+ or
+
+
+]]>
+ <channel-interceptor> element allows you to define a global interceptor which will be applied on all
+ channels that match patterns defined via <pattern> attribute. In the above case the global interceptor will be applied on
+ 'foo' channel and all other channels that begin with 'bar' and 'input'.
+ The <order> attribute allows you to manage the place where this interceptor will be injected.
For example, channel 'inputChannel' could have individual interceptors configured locally (see below):
]]>
- The reasonable question would be where interceptors defined by channel-interceptor-cahin should be injected
- in relation to the existing one(s) (configured locally or through other global chains)? Current implementation provides
+ The reasonable question would be how global interceptor will be injected in relation to other interceptors
+ configured locally or through other global interceptor definitions? Current implementation provides
a very simple and clever mechanism of handling this. Positive number in the order attribute will ensure interceptor injection
after existing interceptors and negative number will ensure that such interceptors injected before.
- This means that in the above example interceptors configured in global interceptor chain would be injected after
- 'wire-tap' interceptor configured locally. If there was another global chain with matching channel-name-pattern the
- order between the interceptors defined in two chains would be determined based on who's got the higher or lower
- value in order attribute.
+ This means that in the above example global interceptor will be injected AFTER (since its order is greater then 0)
+ 'wire-tap' interceptor configured locally. If there was another global interceptor with matching pattern their
+ order would be determined based on who's got the higher or lower value in order attribute.
+ To inject global interceptor BEFORE the existing interceptors use negative value for the order attribute.