|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <beans:beans xmlns="http://www.springframework.org/schema/integration"
|
3 |
| - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 |
| - xmlns:beans="http://www.springframework.org/schema/beans" |
5 |
| - xmlns:task="http://www.springframework.org/schema/task" |
6 |
| - xmlns:context="http://www.springframework.org/schema/context" |
7 |
| - xmlns:util="http://www.springframework.org/schema/util" |
8 |
| - xsi:schemaLocation="http://www.springframework.org/schema/task https://www.springframework.org/schema/task/spring-task.xsd |
9 |
| - http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xmlns:beans="http://www.springframework.org/schema/beans" |
| 5 | + xmlns:context="http://www.springframework.org/schema/context" |
| 6 | + xmlns:util="http://www.springframework.org/schema/util" |
| 7 | + xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd |
10 | 8 | http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd
|
11 | 9 | http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd
|
12 | 10 | http://www.springframework.org/schema/util https://www.springframework.org/schema/util/spring-util.xsd">
|
13 | 11 |
|
14 | 12 | <context:property-placeholder properties-ref="props"/>
|
15 | 13 |
|
16 |
| - <util:properties id="props"/> |
| 14 | + <util:properties id="props"/> |
17 | 15 |
|
18 | 16 | <channel id="outputChannel">
|
19 | 17 | <queue capacity="5"/>
|
|
40 | 38 | <beans:bean id="transactionManager" class="org.springframework.integration.transaction.PseudoTransactionManager"/>
|
41 | 39 |
|
42 | 40 | <aggregator id="completelyDefinedAggregator"
|
43 |
| - input-channel="completelyDefinedAggregatorInput" |
44 |
| - output-channel="outputChannel" |
45 |
| - discard-channel="discardChannel" |
46 |
| - ref="aggregatorBean" |
47 |
| - release-strategy="releaseStrategy" |
48 |
| - correlation-strategy="correlationStrategy" |
49 |
| - send-timeout="86420000" |
50 |
| - send-partial-result-on-expiry="true" |
51 |
| - expire-groups-upon-completion="true" |
52 |
| - expire-groups-upon-timeout="false" |
53 |
| - empty-group-min-timeout="123" |
54 |
| - group-timeout="456" |
55 |
| - lock-registry="lockRegistry" |
56 |
| - scheduler="scheduler" |
57 |
| - message-store="store" |
58 |
| - pop-sequence="false" |
59 |
| - order="5" |
60 |
| - expire-duration="10000" |
61 |
| - expire-timeout="250"> |
62 |
| - <expire-transactional/> |
| 41 | + input-channel="completelyDefinedAggregatorInput" |
| 42 | + output-channel="outputChannel" |
| 43 | + discard-channel="discardChannel" |
| 44 | + ref="aggregatorBean" |
| 45 | + release-strategy="releaseStrategy" |
| 46 | + correlation-strategy="correlationStrategy" |
| 47 | + send-timeout="86420000" |
| 48 | + send-partial-result-on-expiry="true" |
| 49 | + expire-groups-upon-completion="true" |
| 50 | + expire-groups-upon-timeout="false" |
| 51 | + empty-group-min-timeout="123" |
| 52 | + group-timeout="456" |
| 53 | + lock-registry="lockRegistry" |
| 54 | + scheduler="scheduler" |
| 55 | + message-store="store" |
| 56 | + pop-sequence="false" |
| 57 | + order="5" |
| 58 | + expire-duration="10000" |
| 59 | + expire-timeout="250"> |
| 60 | + <expire-transactional/> |
63 | 61 | </aggregator>
|
64 | 62 |
|
65 | 63 | <beans:bean id="lockRegistry" class="org.springframework.integration.support.locks.DefaultLockRegistry"/>
|
66 | 64 |
|
67 |
| - <task:scheduler id="scheduler"/> |
| 65 | + <beans:bean id="scheduler" |
| 66 | + class="org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler"> |
| 67 | + <beans:property name="phase" value="1073741823"/> |
| 68 | + </beans:bean> |
68 | 69 |
|
69 | 70 | <beans:bean id="store" class="org.springframework.integration.store.SimpleMessageStore"/>
|
70 | 71 |
|
71 | 72 | <channel id="aggregatorWithExpressionsInput"/>
|
72 | 73 | <channel id="aggregatorWithExpressionsOutput"/>
|
73 | 74 | <aggregator id="aggregatorWithExpressions"
|
74 |
| - input-channel="aggregatorWithExpressionsInput" |
75 |
| - output-channel="aggregatorWithExpressionsOutput" |
76 |
| - expression="?[payload.startsWith('1')].![payload]" |
77 |
| - release-strategy-expression="#root.size()>2" |
78 |
| - correlation-strategy-expression="headers['foo']"/> |
| 75 | + input-channel="aggregatorWithExpressionsInput" |
| 76 | + output-channel="aggregatorWithExpressionsOutput" |
| 77 | + expression="?[payload.startsWith('1')].![payload]" |
| 78 | + release-strategy-expression="#root.size()>2" |
| 79 | + correlation-strategy-expression="headers['foo']"/> |
79 | 80 |
|
80 | 81 | <channel id="aggregatorWithReferenceAndMethodInput"/>
|
81 | 82 | <aggregator id="aggregatorWithReferenceAndMethod"
|
82 |
| - ref="adderBean" |
83 |
| - method="add" |
84 |
| - input-channel="aggregatorWithReferenceAndMethodInput" |
85 |
| - output-channel="outputChannel"/> |
| 83 | + ref="adderBean" |
| 84 | + method="add" |
| 85 | + input-channel="aggregatorWithReferenceAndMethodInput" |
| 86 | + output-channel="outputChannel"/> |
86 | 87 |
|
87 | 88 | <channel id="aggregatorWithPojoReleaseStrategyInput"/>
|
88 | 89 | <aggregator id="aggregatorWithPojoReleaseStrategy"
|
89 |
| - input-channel="aggregatorWithPojoReleaseStrategyInput" |
90 |
| - output-channel="outputChannel" |
91 |
| - ref="adderBean" |
92 |
| - method="add" |
93 |
| - release-strategy="pojoReleaseStrategy" |
94 |
| - release-strategy-method="checkCompletenessAsList"/> |
| 90 | + input-channel="aggregatorWithPojoReleaseStrategyInput" |
| 91 | + output-channel="outputChannel" |
| 92 | + ref="adderBean" |
| 93 | + method="add" |
| 94 | + release-strategy="pojoReleaseStrategy" |
| 95 | + release-strategy-method="checkCompletenessAsList"/> |
95 | 96 |
|
96 | 97 | <channel id="aggregatorWithPojoReleaseStrategyInputAsCollection"/>
|
97 | 98 | <aggregator id="aggregatorWithPojoReleaseStrategyAsCollection"
|
98 |
| - input-channel="aggregatorWithPojoReleaseStrategyInputAsCollection" |
99 |
| - output-channel="outputChannel" |
100 |
| - ref="adderBean" |
101 |
| - method="add" |
102 |
| - release-strategy="pojoReleaseStrategy" |
103 |
| - release-strategy-method="checkCompletenessAsCollection"/> |
| 99 | + input-channel="aggregatorWithPojoReleaseStrategyInputAsCollection" |
| 100 | + output-channel="outputChannel" |
| 101 | + ref="adderBean" |
| 102 | + method="add" |
| 103 | + release-strategy="pojoReleaseStrategy" |
| 104 | + release-strategy-method="checkCompletenessAsCollection"/> |
104 | 105 |
|
105 | 106 | <channel id="aggregatorWithExpressionsAndPojoAggregatorInput"/>
|
106 | 107 | <aggregator id="aggregatorWithExpressionsAndPojoAggregator"
|
107 |
| - input-channel="aggregatorWithExpressionsAndPojoAggregatorInput" |
108 |
| - ref="aggregatorBean" |
109 |
| - release-strategy-expression="size() == 2" |
110 |
| - correlation-strategy-expression="headers['foo']" |
111 |
| - empty-group-min-timeout="60000"/> |
| 108 | + input-channel="aggregatorWithExpressionsAndPojoAggregatorInput" |
| 109 | + ref="aggregatorBean" |
| 110 | + release-strategy-expression="size() == 2" |
| 111 | + correlation-strategy-expression="headers['foo']" |
| 112 | + empty-group-min-timeout="60000"/> |
112 | 113 |
|
113 | 114 | <beans:bean id="aggregatorBean"
|
114 |
| - class="org.springframework.integration.config.TestAggregatorBean" /> |
| 115 | + class="org.springframework.integration.config.TestAggregatorBean"/> |
115 | 116 |
|
116 | 117 | <beans:bean id="aggregatorMGPBean"
|
117 |
| - class="org.springframework.integration.aggregator.SimpleMessageGroupProcessor" /> |
| 118 | + class="org.springframework.integration.aggregator.SimpleMessageGroupProcessor"/> |
118 | 119 |
|
119 | 120 | <beans:bean id="aggregatorCustomMGPBean"
|
120 |
| - class="org.springframework.integration.config.AggregatorParserTests$MyMGP" /> |
| 121 | + class="org.springframework.integration.config.AggregatorParserTests$MyMGP"/> |
121 | 122 |
|
122 |
| - <beans:bean id="adderBean" |
123 |
| - class="org.springframework.integration.config.Adder" /> |
| 123 | + <beans:bean id="adderBean" |
| 124 | + class="org.springframework.integration.config.Adder"/> |
124 | 125 |
|
125 | 126 | <beans:bean id="releaseStrategy"
|
126 |
| - class="org.springframework.integration.config.TestReleaseStrategy" /> |
| 127 | + class="org.springframework.integration.config.TestReleaseStrategy"/> |
127 | 128 |
|
128 | 129 | <beans:bean id="correlationStrategy" class="org.springframework.integration.config.TestCorrelationStrategy"/>
|
129 | 130 |
|
130 | 131 | <beans:bean id="pojoReleaseStrategy"
|
131 |
| - class="org.springframework.integration.config.MaxValueReleaseStrategy"> |
132 |
| - <beans:constructor-arg value="10" /> |
| 132 | + class="org.springframework.integration.config.MaxValueReleaseStrategy"> |
| 133 | + <beans:constructor-arg value="10"/> |
133 | 134 | </beans:bean>
|
134 | 135 |
|
135 | 136 | </beans:beans>
|
0 commit comments