INT-1848 Add order Attribute (mail)
This commit is contained in:
@@ -59,6 +59,14 @@
|
|||||||
</xsd:annotation>
|
</xsd:annotation>
|
||||||
</xsd:attribute>
|
</xsd:attribute>
|
||||||
<xsd:attribute name="auto-startup" type="xsd:string" default="true"/>
|
<xsd:attribute name="auto-startup" type="xsd:string" default="true"/>
|
||||||
|
<xsd:attribute name="order">
|
||||||
|
<xsd:annotation>
|
||||||
|
<xsd:documentation>
|
||||||
|
Specifies the order for invocation when this endpoint is connected as a
|
||||||
|
subscriber to a SubscribableChannel.
|
||||||
|
</xsd:documentation>
|
||||||
|
</xsd:annotation>
|
||||||
|
</xsd:attribute>
|
||||||
</xsd:complexType>
|
</xsd:complexType>
|
||||||
</xsd:element>
|
</xsd:element>
|
||||||
|
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ public class MailOutboundChannelAdapterParserTests {
|
|||||||
DirectFieldAccessor fieldAccessor = new DirectFieldAccessor(handler);
|
DirectFieldAccessor fieldAccessor = new DirectFieldAccessor(handler);
|
||||||
MailSender mailSender = (MailSender) fieldAccessor.getPropertyValue("mailSender");
|
MailSender mailSender = (MailSender) fieldAccessor.getPropertyValue("mailSender");
|
||||||
assertNotNull(mailSender);
|
assertNotNull(mailSender);
|
||||||
|
assertEquals(23, fieldAccessor.getPropertyValue("order"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
http://www.springframework.org/schema/integration/mail/spring-integration-mail.xsd">
|
http://www.springframework.org/schema/integration/mail/spring-integration-mail.xsd">
|
||||||
|
|
||||||
<mail:outbound-channel-adapter id="adapterWithMailSenderReference"
|
<mail:outbound-channel-adapter id="adapterWithMailSenderReference"
|
||||||
|
order="23"
|
||||||
mail-sender="mailSender"/>
|
mail-sender="mailSender"/>
|
||||||
|
|
||||||
<mail:outbound-channel-adapter id="adapterWithHostProperty"
|
<mail:outbound-channel-adapter id="adapterWithHostProperty"
|
||||||
|
|||||||
Reference in New Issue
Block a user