resolves INT-577 by adding namespace support for setting of default output channel
This commit is contained in:
@@ -54,6 +54,7 @@ public class XPathRouterParser extends AbstractConsumerEndpointParser {
|
||||
String xPathExpressionRef = element.getAttribute("xpath-expression-ref");
|
||||
String channelResolver = element.getAttribute("channel-resolver");
|
||||
String resolutionRequired = element.getAttribute("resolution-required");
|
||||
String defaultOutputChannel = element.getAttribute("default-output-channel");
|
||||
|
||||
NodeList xPathExpressionNodes = element.getElementsByTagNameNS(
|
||||
element.getNamespaceURI(), "xpath-expression");
|
||||
@@ -87,6 +88,9 @@ public class XPathRouterParser extends AbstractConsumerEndpointParser {
|
||||
builder.addPropertyReference("channelResolver", channelResolver);
|
||||
}
|
||||
|
||||
if(StringUtils.hasText(defaultOutputChannel)){
|
||||
builder.addPropertyReference("defaultOutputChannel", defaultOutputChannel);
|
||||
}
|
||||
|
||||
return builder;
|
||||
}
|
||||
|
||||
@@ -189,6 +189,16 @@
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
<xsd:attribute name="resolution-required" type="xsd:boolean" use="optional"/>
|
||||
<xsd:attribute name="default-output-channel" type="xsd:string">
|
||||
<xsd:annotation>
|
||||
<xsd:appinfo>
|
||||
<tool:annotation kind="ref">
|
||||
<tool:expected-type
|
||||
type="org.springframework.integration.core.MessageChannel" />
|
||||
</tool:annotation>
|
||||
</xsd:appinfo>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user