put back 'channel-resolver' attribute with deprecation warnings

INT-2299 polishing

INT-2299 added XPATH test
This commit is contained in:
Oleg Zhurakousky
2011-12-14 16:18:41 -05:00
committed by Mark Fisher
parent 052c325dfa
commit 0a8b348c98
8 changed files with 53 additions and 4 deletions

View File

@@ -39,6 +39,7 @@ import org.springframework.integration.endpoint.EventDrivenConsumer;
import org.springframework.integration.message.GenericMessage;
import org.springframework.integration.router.AbstractMappingMessageRouter;
import org.springframework.integration.support.MessageBuilder;
import org.springframework.integration.support.channel.BeanFactoryChannelResolver;
import org.springframework.integration.test.util.TestUtils;
import org.springframework.integration.xml.DefaultXmlPayloadConverter;
import org.springframework.integration.xml.util.XmlTestUtil;
@@ -265,5 +266,7 @@ public class XPathRouterParserTests {
return super.convertToDocument(object);
}
}
public static class MyChannelResolver extends BeanFactoryChannelResolver{}
}

View File

@@ -26,7 +26,9 @@
<int-xml:mapping value="channelB" channel="channelA"/>
</int-xml:xpath-router>
<int-xml:xpath-router id="xpathRouterWithCustomConverter" input-channel="customConverterChannel" evaluate-as-string="true" converter="testConverter">
<int-xml:xpath-router id="xpathRouterWithCustomConverter"
input-channel="customConverterChannel" evaluate-as-string="true"
converter="testConverter" channel-resolver="cr">
<int-xml:xpath-expression expression="/name"/>
</int-xml:xpath-router>
@@ -44,4 +46,5 @@
<bean id="testConverter" class="org.springframework.integration.xml.config.XPathRouterParserTests$TestXmlPayloadConverter"/>
<bean id="cr" class="org.springframework.integration.xml.config.XPathRouterParserTests.MyChannelResolver"/>
</beans>