The <splitter/> element now creates its own endpoint (i.e. it is no longer necessary to create a <handler-endpoint/> as well) (INT-283). Also, the <handler-endpoint/>'s "handler" attribute has been replaced with "ref" to be more consistent with other spring configuration options (e.g. defining jms-listeners with the JMS namespace support).
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
<channel id="coldDrinks"/>
|
||||
<channel id="hotDrinks"/>
|
||||
|
||||
<handler-endpoint input-channel="coldDrinks" handler="barista" method="prepareColdDrink"/>
|
||||
<handler-endpoint input-channel="hotDrinks" handler="barista" method="prepareHotDrink">
|
||||
<handler-endpoint input-channel="coldDrinks" ref="barista" method="prepareColdDrink"/>
|
||||
<handler-endpoint input-channel="hotDrinks" ref="barista" method="prepareHotDrink">
|
||||
<interceptors>
|
||||
<concurrency-interceptor max="5"/>
|
||||
</interceptors>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
</channel-adapter>
|
||||
|
||||
<handler-endpoint input-channel="channel1" output-channel="channel2"
|
||||
handler="exclaimer" method="exclaim"/>
|
||||
ref="exclaimer" method="exclaim"/>
|
||||
|
||||
<channel-adapter channel="channel2" target="fileTarget"/>
|
||||
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
|
||||
<beans:import resource="fileCopyDemo-common.xml"/>
|
||||
|
||||
<file-source id="fileSource" type="text" directory="${java.io.tmpdir}/spring-integration-samples/input"/>
|
||||
<file-source id="fileSource" type="text"
|
||||
filename-pattern="[a-z]+.txt"
|
||||
directory="${java.io.tmpdir}/spring-integration-samples/input"/>
|
||||
|
||||
</beans:beans>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
<handler-endpoint input-channel="inputChannel"
|
||||
output-channel="outputChannel"
|
||||
handler="helloService"
|
||||
ref="helloService"
|
||||
method="sayHello"/>
|
||||
|
||||
<beans:bean id="helloService" class="org.springframework.integration.samples.helloworld.HelloService"/>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<!-- The handler endpoint receives from the 'fahrenheitChannel',
|
||||
invokes the handler, and sends the reply Message to the 'celsiusChannel'. -->
|
||||
<handler-endpoint input-channel="fahrenheitChannel"
|
||||
handler="temperatureConverter"
|
||||
ref="temperatureConverter"
|
||||
output-channel="celsiusChannel"/>
|
||||
|
||||
<!-- The handler invokes the WebService for the given URI and returns a reply Message. -->
|
||||
|
||||
Reference in New Issue
Block a user