diff --git a/org.springframework.integration/src/main/java/org/springframework/integration/config/xml/spring-integration-1.0.xsd b/org.springframework.integration/src/main/java/org/springframework/integration/config/xml/spring-integration-1.0.xsd index 5d16b11679..00fe614a70 100644 --- a/org.springframework.integration/src/main/java/org/springframework/integration/config/xml/spring-integration-1.0.xsd +++ b/org.springframework.integration/src/main/java/org/springframework/integration/config/xml/spring-integration-1.0.xsd @@ -26,9 +26,12 @@ - Defines the ApplicationEventMulticaster to use for this - ApplicationContext. The "task-executor" reference is optional. - If not provided, an instance of ThreadPoolTaskExecutor will be + Defines the ApplicationEventMulticaster to use + for this + ApplicationContext. The "task-executor" reference is + optional. + If not provided, an instance of ThreadPoolTaskExecutor + will be created by default. @@ -75,7 +78,8 @@ - Defines a queue for messages. If 'capacity' is specified, it will be a + Defines a queue for messages. If 'capacity' is + specified, it will be a bounded queue. @@ -85,7 +89,8 @@ - Defines a queue with priority-ordering for message reception. + Defines a queue with priority-ordering for message + reception. @@ -95,7 +100,8 @@ - Defines a rendezvous queue where a sender will block until the receiver + Defines a rendezvous queue where a sender will + block until the receiver arrives or vice-versa. @@ -104,7 +110,8 @@ - Defines a Publish-Subscribe channel that broadcasts messages to its + Defines a Publish-Subscribe channel that + broadcasts messages to its subscribers. @@ -204,7 +211,8 @@ - Defines a Channel Adapter that receives from a MessageSource and sends to a + Defines a Channel Adapter that receives from a + MessageSource and sends to a MessageChannel. @@ -213,7 +221,8 @@ - Defines a Channel Adapter that receives from a MessageChannel and sends to + Defines a Channel Adapter that receives from a + MessageChannel and sends to a MessageConsumer. @@ -280,11 +289,16 @@ - Defines an endpoint for exposing any bean reference as a service that - receives request Messages from an 'input-channel' and may send reply - Messages to an 'output-channel'. The 'ref' may point to an instance - that has either a single public method or a method with the - @ServiceActivator annotation. Otherwise, the 'method' attribute + Defines an endpoint for exposing any bean + reference as a service that + receives request Messages from an + 'input-channel' and may send reply + Messages to an 'output-channel'. + The 'ref' may point to an instance + that has either a single public + method or a method with the + @ServiceActivator annotation. Otherwise, + the 'method' attribute should be provided along with 'ref'. @@ -315,9 +329,11 @@ - Base type for Message Endpoint elements that accept Messages from an + Base type for Message Endpoint elements that + accept Messages from an input-channel - and also may produce reply Messages to be sent to an output-channel. + and also may produce reply + Messages to be sent to an output-channel. @@ -339,7 +355,8 @@ - Base type for Message Endpoint elements that accept Messages from an + Base type for Message Endpoint elements that + accept Messages from an input-channel. @@ -389,7 +406,8 @@ - Defines an endpoint that passes a Message to the output-channel without + Defines an endpoint that passes a Message to the + output-channel without modifying it. @@ -398,65 +416,25 @@ - Defines an endpoint composed of a chain of Message Handlers. + Defines an endpoint composed of a chain of Message + Handlers. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + @@ -546,7 +524,8 @@ - + - Provides a MessageSelector reference. If a method attribute is set the - referred bean doesn't need to implement the MessageSelector + Provides a MessageSelector reference. If a method + attribute is set the + referred bean doesn't need to implement the + MessageSelector interface. @@ -620,7 +601,8 @@ - Defines a HeaderEnricher endpoint for values defined in the MessageHeaders. + Defines a HeaderEnricher endpoint for values + defined in the MessageHeaders. @@ -650,7 +632,8 @@ - Provides the names of the standard configurable MessageHeaders. + Provides the names of the standard configurable + MessageHeaders. @@ -692,9 +675,11 @@ - Specifies the maximum pool size in order to limit the number of concurrent + Specifies the maximum pool size in order to + limit the number of concurrent tasks. - Otherwise, the default will be Integer.MAX_VALUE. + Otherwise, the default will be + Integer.MAX_VALUE. @@ -731,7 +716,8 @@ - Defines a Transformer that converts any Object payload to a String by + Defines a Transformer that converts any Object + payload to a String by invoking its toString() method. @@ -740,7 +726,8 @@ - Defines a Transformer that serializes any Object payload that implements + Defines a Transformer that serializes any Object + payload that implements Serializable into a byte array. @@ -749,7 +736,8 @@ - Defines a Transformer that deserializes a byte array payload into an + Defines a Transformer that deserializes a byte + array payload into an Object. @@ -902,7 +890,8 @@ - Defines a list of interceptors. Each element may be a ChannelInterceptor, + Defines a list of interceptors. Each element may + be a ChannelInterceptor, ref, or inner-bean. diff --git a/org.springframework.integration/src/test/java/org/springframework/integration/config/ChainParserTests-context.xml b/org.springframework.integration/src/test/java/org/springframework/integration/config/ChainParserTests-context.xml index 274a91ab30..3059498d6e 100644 --- a/org.springframework.integration/src/test/java/org/springframework/integration/config/ChainParserTests-context.xml +++ b/org.springframework.integration/src/test/java/org/springframework/integration/config/ChainParserTests-context.xml @@ -45,6 +45,13 @@ class="org.springframework.integration.config.ChainParserTests$StubHandler" /> + + + + + + diff --git a/org.springframework.integration/src/test/java/org/springframework/integration/config/ChainParserTests.java b/org.springframework.integration/src/test/java/org/springframework/integration/config/ChainParserTests.java index a10a34a678..c92dc24feb 100644 --- a/org.springframework.integration/src/test/java/org/springframework/integration/config/ChainParserTests.java +++ b/org.springframework.integration/src/test/java/org/springframework/integration/config/ChainParserTests.java @@ -22,6 +22,8 @@ import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertThat; +import java.util.List; + import org.junit.Test; import org.junit.runner.RunWith; @@ -35,6 +37,7 @@ import org.springframework.integration.handler.ReplyMessageHolder; import org.springframework.integration.message.MessageBuilder; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.springframework.util.StringUtils; /** * @author Mark Fisher @@ -127,5 +130,10 @@ public class ChainParserTests { } } - + + public static class StubAggregator { + public String aggregate(List strings){ + return StringUtils.collectionToCommaDelimitedString(strings); + } + } }