Removed the 'resolution-required' attribute for xpath-router (it is being refactored as a responsibility of the RouterEndpoint rather than individual Router implementations).

This commit is contained in:
Mark Fisher
2008-08-28 18:22:04 +00:00
parent c6f4bd910d
commit 023bf6cbd8
3 changed files with 6 additions and 11 deletions

View File

@@ -48,7 +48,6 @@ public class XPathRouterParser extends AbstractSingleBeanDefinitionParser {
@Override
protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {
boolean multiChannel = Boolean.parseBoolean(element.getAttribute("multi-channel"));
boolean resolutionRequired = Boolean.parseBoolean(element.getAttribute("resolution-required"));
String xPathExpression = element.getAttribute("xpath-expression");
String xPathExpressionRef = element.getAttribute("xpath-expression-ref");
if ((StringUtils.hasText(xPathExpression) && StringUtils.hasText(xPathExpressionRef))
@@ -75,7 +74,6 @@ public class XPathRouterParser extends AbstractSingleBeanDefinitionParser {
else {
resolverDefinitionBuilder.addConstructorArgReference(xPathExpressionRef);
}
builder.addPropertyValue("resolutionRequired", resolutionRequired);
builder.addPropertyValue("channelNameResolver", resolverDefinitionBuilder.getBeanDefinition());
}

View File

@@ -89,10 +89,7 @@
use="optional" />
<xsd:attribute name="multi-channel" type="xsd:boolean"
default="false" />
<xsd:attribute name="resolution-required" type="xsd:boolean"
default="true" />
</xsd:complexType>
</xsd:element>
</xsd:schema>