The <endpoint/> element now expects a "handler" attribute instead of "handler-ref".
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
<channel id="coldDrinks"/>
|
||||
<channel id="hotDrinks"/>
|
||||
|
||||
<endpoint input-channel="coldDrinks" handler-ref="barista" handler-method="prepareColdDrink"/>
|
||||
<endpoint input-channel="hotDrinks" handler-ref="barista" handler-method="prepareHotDrink"/>
|
||||
<endpoint input-channel="coldDrinks" handler="barista" handler-method="prepareColdDrink"/>
|
||||
<endpoint input-channel="hotDrinks" handler="barista" handler-method="prepareHotDrink"/>
|
||||
|
||||
<beans:bean id="cafe" class="org.springframework.integration.samples.cafe.Cafe">
|
||||
<beans:property name="orderChannel" ref="orders"/>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
channel="channel1" poll-period="10000"/>
|
||||
|
||||
<si:endpoint input-channel="channel1" default-output-channel="channel2"
|
||||
handler-ref="exclaimer" handler-method="exclaim"/>
|
||||
handler="exclaimer" handler-method="exclaim"/>
|
||||
|
||||
<si:file-target directory="${java.io.tmpdir}/spring-integration-samples/output"
|
||||
channel="channel2"/>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
<endpoint input-channel="inputChannel"
|
||||
default-output-channel="outputChannel"
|
||||
handler-ref="helloService"
|
||||
handler="helloService"
|
||||
handler-method="sayHello"/>
|
||||
|
||||
<beans:bean id="helloService" class="org.springframework.integration.samples.helloworld.HelloService"/>
|
||||
|
||||
Reference in New Issue
Block a user