INT-1848 Add order Attribute (mail)

This commit is contained in:
Gary Russell
2011-04-30 13:39:13 -04:00
parent 4779909d80
commit 076a0dad1f
3 changed files with 10 additions and 0 deletions

View File

@@ -59,6 +59,14 @@
</xsd:annotation>
</xsd:attribute>
<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:element>

View File

@@ -45,6 +45,7 @@ public class MailOutboundChannelAdapterParserTests {
DirectFieldAccessor fieldAccessor = new DirectFieldAccessor(handler);
MailSender mailSender = (MailSender) fieldAccessor.getPropertyValue("mailSender");
assertNotNull(mailSender);
assertEquals(23, fieldAccessor.getPropertyValue("order"));
}
@Test

View File

@@ -11,6 +11,7 @@
http://www.springframework.org/schema/integration/mail/spring-integration-mail.xsd">
<mail:outbound-channel-adapter id="adapterWithMailSenderReference"
order="23"
mail-sender="mailSender"/>
<mail:outbound-channel-adapter id="adapterWithHostProperty"