31 lines
1.2 KiB
XML
31 lines
1.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<beans:beans xmlns="http://www.springframework.org/schema/integration"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:beans="http://www.springframework.org/schema/beans"
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
|
http://www.springframework.org/schema/integration
|
|
http://www.springframework.org/schema/integration/spring-integration-1.0.xsd
|
|
http://www.springframework.org/schema/context
|
|
http://www.springframework.org/schema/context/spring-context-2.5.xsd">
|
|
|
|
<message-bus/>
|
|
<annotation-driven/>
|
|
|
|
<context:component-scan base-package="org.springframework.integration.samples.cafe"/>
|
|
|
|
<channel id="orders"/>
|
|
<channel id="drinks"/>
|
|
<channel id="coldDrinks"/>
|
|
<channel id="hotDrinks"/>
|
|
|
|
<handler-endpoint input-channel="coldDrinks" handler="barista" method="prepareColdDrink"/>
|
|
<handler-endpoint input-channel="hotDrinks" handler="barista" method="prepareHotDrink"/>
|
|
|
|
<beans:bean id="cafe" class="org.springframework.integration.samples.cafe.Cafe">
|
|
<beans:property name="orderChannel" ref="orders"/>
|
|
</beans:bean>
|
|
|
|
</beans:beans>
|