-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplicationContext.xml
24 lines (21 loc) · 1.15 KB
/
applicationContext.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="US-ASCII"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:breeze="http://www.icolumbo.eu/2013/breeze"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.icolumbo.eu/2013/breeze http://www.icolumbo.eu/2013/breeze.xsd
">
<description>Breeze namespace configuration alternative.</description>
<breeze:topology id="demo">
<breeze:spout id="feed" beanType="java.util.Random" signature="nextLong()" outputFields="number">
<breeze:transaction ack="setSeed(number)"/>
</breeze:spout>
<breeze:bolt id="greet" beanType="com.example.Greeter" signature="greet(number)" outputFields="heading"/>
<breeze:bolt id="mark" beanType="com.example.Marker" signature="mark(number)" outputFields="judge isOdd">
<breeze:field name="judge" expression="Source.toString()"/>
<breeze:field name="isOdd" expression="! IsEven"/>
</breeze:bolt>
<breeze:bolt id="register" beanType="com.example.Register" signature="write(heading, isOdd, judge)"/>
</breeze:topology>
</beans>