From 32e34bf2ec2b833ab669f8f6c06a127aa2ffdda4 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Mon, 22 May 2023 11:59:47 -0400 Subject: [PATCH] GH-5871: Add missed `order` attr to XSDs (#8624) * GH-5871: Add missed `order` attr to XSDs Fixes https://github.com/spring-projects/spring-integration/issues/5871 * * Fix `spring-integration-xml.xsd` for duplicates --- .../xml/spring-integration-cassandra.xsd | 11 ++++++- .../jmx/config/spring-integration-jmx.xsd | 16 ++++++++++ .../mail/config/spring-integration-mail.xsd | 19 +---------- .../config/spring-integration-mongodb.xsd | 8 +++++ .../redis/config/spring-integration-redis.xsd | 10 +++++- .../stomp/config/spring-integration-stomp.xsd | 10 ++++++ .../config/spring-integration-websocket.xsd | 10 ++++++ .../ws/config/spring-integration-ws.xsd | 21 ++---------- .../xml/config/spring-integration-xml.xsd | 10 +++--- .../xmpp/config/spring-integration-xmpp.xsd | 32 +++---------------- 10 files changed, 75 insertions(+), 72 deletions(-) diff --git a/spring-integration-cassandra/src/main/resources/org/springframework/integration/config/xml/spring-integration-cassandra.xsd b/spring-integration-cassandra/src/main/resources/org/springframework/integration/config/xml/spring-integration-cassandra.xsd index 989bcef2a2..bcd56c2059 100644 --- a/spring-integration-cassandra/src/main/resources/org/springframework/integration/config/xml/spring-integration-cassandra.xsd +++ b/spring-integration-cassandra/src/main/resources/org/springframework/integration/config/xml/spring-integration-cassandra.xsd @@ -187,9 +187,18 @@ - + + + + + Specifies the order for invocation when this + endpoint is connected as a + subscriber to a channel. + + + diff --git a/spring-integration-jmx/src/main/resources/org/springframework/integration/jmx/config/spring-integration-jmx.xsd b/spring-integration-jmx/src/main/resources/org/springframework/integration/jmx/config/spring-integration-jmx.xsd index bb21b1ef80..b8e589ea8b 100644 --- a/spring-integration-jmx/src/main/resources/org/springframework/integration/jmx/config/spring-integration-jmx.xsd +++ b/spring-integration-jmx/src/main/resources/org/springframework/integration/jmx/config/spring-integration-jmx.xsd @@ -163,6 +163,14 @@ minOccurs="0" maxOccurs="1"/> + + + + The order for dispatching when the channel adapter is connected + as a subscriber to a 'SubscribableChannel'. + + + @@ -328,6 +336,14 @@ + + + + The order for dispatching when the channel adapter is connected + as a subscriber to a 'SubscribableChannel'. + + + diff --git a/spring-integration-mail/src/main/resources/org/springframework/integration/mail/config/spring-integration-mail.xsd b/spring-integration-mail/src/main/resources/org/springframework/integration/mail/config/spring-integration-mail.xsd index b38af9d71a..5e782c336e 100644 --- a/spring-integration-mail/src/main/resources/org/springframework/integration/mail/config/spring-integration-mail.xsd +++ b/spring-integration-mail/src/main/resources/org/springframework/integration/mail/config/spring-integration-mail.xsd @@ -370,24 +370,7 @@ - - - - - - - - - - - - - - - - - - + diff --git a/spring-integration-mongodb/src/main/resources/org/springframework/integration/mongodb/config/spring-integration-mongodb.xsd b/spring-integration-mongodb/src/main/resources/org/springframework/integration/mongodb/config/spring-integration-mongodb.xsd index 2403ea04d0..41c7214882 100644 --- a/spring-integration-mongodb/src/main/resources/org/springframework/integration/mongodb/config/spring-integration-mongodb.xsd +++ b/spring-integration-mongodb/src/main/resources/org/springframework/integration/mongodb/config/spring-integration-mongodb.xsd @@ -126,6 +126,14 @@ + + + + Specifies the order for invocation when this adapter is connected as a + subscriber to a SubscribableChannel. + + + diff --git a/spring-integration-redis/src/main/resources/org/springframework/integration/redis/config/spring-integration-redis.xsd b/spring-integration-redis/src/main/resources/org/springframework/integration/redis/config/spring-integration-redis.xsd index 04d02e2379..21963f70ee 100644 --- a/spring-integration-redis/src/main/resources/org/springframework/integration/redis/config/spring-integration-redis.xsd +++ b/spring-integration-redis/src/main/resources/org/springframework/integration/redis/config/spring-integration-redis.xsd @@ -343,6 +343,14 @@ + + + + Specifies the order for invocation when this adapter is connected as a + subscriber to a SubscribableChannel. + + + @@ -674,7 +682,7 @@ .reply' as its key. A new UUID is used for each interaction. ]]> diff --git a/spring-integration-stomp/src/main/resources/org/springframework/integration/stomp/config/spring-integration-stomp.xsd b/spring-integration-stomp/src/main/resources/org/springframework/integration/stomp/config/spring-integration-stomp.xsd index f6b31c9044..41b41b8e2e 100644 --- a/spring-integration-stomp/src/main/resources/org/springframework/integration/stomp/config/spring-integration-stomp.xsd +++ b/spring-integration-stomp/src/main/resources/org/springframework/integration/stomp/config/spring-integration-stomp.xsd @@ -107,6 +107,16 @@ + + + + Specifies the order for invocation when this endpoint is connected as a + subscriber to a channel. This is particularly relevant when that channel + is using a "failover" dispatching strategy. It has no effect when this + endpoint itself is a Polling Consumer for a channel with a queue. + + + diff --git a/spring-integration-websocket/src/main/resources/org/springframework/integration/websocket/config/spring-integration-websocket.xsd b/spring-integration-websocket/src/main/resources/org/springframework/integration/websocket/config/spring-integration-websocket.xsd index 6f739885d0..79f79f0bbf 100644 --- a/spring-integration-websocket/src/main/resources/org/springframework/integration/websocket/config/spring-integration-websocket.xsd +++ b/spring-integration-websocket/src/main/resources/org/springframework/integration/websocket/config/spring-integration-websocket.xsd @@ -358,6 +358,16 @@ + + + + Specifies the order for invocation when this endpoint is connected as a + subscriber to a channel. This is particularly relevant when that channel + is using a "failover" dispatching strategy. It has no effect when this + endpoint itself is a Polling Consumer for a channel with a queue. + + + diff --git a/spring-integration-ws/src/main/resources/org/springframework/integration/ws/config/spring-integration-ws.xsd b/spring-integration-ws/src/main/resources/org/springframework/integration/ws/config/spring-integration-ws.xsd index d0a8ee1afa..7c9ee390f1 100644 --- a/spring-integration-ws/src/main/resources/org/springframework/integration/ws/config/spring-integration-ws.xsd +++ b/spring-integration-ws/src/main/resources/org/springframework/integration/ws/config/spring-integration-ws.xsd @@ -87,7 +87,7 @@ ]]> - + Specify whether this outbound gateway must return a non-null value. This value is @@ -495,24 +495,7 @@ this list can also be simple patterns to be matched against the header names (e. - - - - - - - - - - - - - - - - - - + diff --git a/spring-integration-xml/src/main/resources/org/springframework/integration/xml/config/spring-integration-xml.xsd b/spring-integration-xml/src/main/resources/org/springframework/integration/xml/config/spring-integration-xml.xsd index b24e7dc783..8f54320f1f 100644 --- a/spring-integration-xml/src/main/resources/org/springframework/integration/xml/config/spring-integration-xml.xsd +++ b/spring-integration-xml/src/main/resources/org/springframework/integration/xml/config/spring-integration-xml.xsd @@ -492,7 +492,7 @@ - + Reference to the XPathExpression instance to be @@ -534,13 +534,13 @@ - representing channel names. Typically such a list + representing channel names. Typically, such a list will contain a single channel name. However, based on the results of an XPath Expression, the XPath router can also take on the characteristics of a Recipient List Router if the XPath Expression - returns more then one value. In that case, the - List will contain more then one channel + returns more than one value. In that case, the + List will contain more than one channel name and consequently Messages will be sent to all channels in the list. ]]> diff --git a/spring-integration-xmpp/src/main/resources/org/springframework/integration/xmpp/config/spring-integration-xmpp.xsd b/spring-integration-xmpp/src/main/resources/org/springframework/integration/xmpp/config/spring-integration-xmpp.xsd index 714493e307..a65c28b8b6 100644 --- a/spring-integration-xmpp/src/main/resources/org/springframework/integration/xmpp/config/spring-integration-xmpp.xsd +++ b/spring-integration-xmpp/src/main/resources/org/springframework/integration/xmpp/config/spring-integration-xmpp.xsd @@ -112,7 +112,7 @@ A SpEL expression to evaluate a 'payload' with the incoming 'org.jivesoftware.smack.packet.Message' as root object. It useful in case of custom (XEP) XMPP interactions, e.g. GCM. - By default a Message 'body' is used as 'payload'. + By default, a Message 'body' is used as 'payload'. The '#extension' SpEL variable is registered in the evaluation context if one and only one extension is present in the Message. Replaces 'extract-payload' attribute since 4.3. @@ -295,7 +295,7 @@ - The id of the user you sending a message to (e.g., user@gmail.com) + The id of the user the message is sent to (e.g., user@gmail.com) @@ -333,7 +333,7 @@ - Value of this header inside of a Message + Value of this header in a Message @@ -366,31 +366,7 @@ - - - - - - - - - The receiving Message channel of this endpoint - - - - - - - - - - - - Identifies the Message channel where Message will be sent after it's being processed by this - endpoint - - - +