Changed <splitter> to use inner definition of handler (instead of "ref")

This commit is contained in:
Oleg Zhurakousky
2009-06-23 04:51:56 +00:00
parent 97fc78a619
commit c29af1f5c0

View File

@@ -13,7 +13,9 @@
<gateway id="cafe" service-interface="org.springframework.integration.samples.cafe.Cafe"/>
<channel id="orders"/>
<splitter input-channel="orders" ref="orderSplitter" method="split" output-channel="drinks"/>
<splitter input-channel="orders" method="split" output-channel="drinks">
<beans:bean class="org.springframework.integration.samples.cafe.xml.OrderSplitter"/>
</splitter>
<channel id="drinks"/>
<router input-channel="drinks" ref="drinkRouter" method="resolveOrderItemChannel"/>
@@ -33,8 +35,6 @@
<stream:stdout-channel-adapter id="deliveries"/>
<beans:bean id="orderSplitter" class="org.springframework.integration.samples.cafe.xml.OrderSplitter"/>
<beans:bean id="drinkRouter" class="org.springframework.integration.samples.cafe.xml.DrinkRouter"/>
<beans:bean id="barista" class="org.springframework.integration.samples.cafe.xml.Barista"/>