INT-1858 removed requirememt for top-level gateway to have an ID attribute

This commit is contained in:
Oleg Zhurakousky
2011-04-11 17:13:49 -04:00
parent 3f6ae0ff93
commit 67ab98c77a
2 changed files with 7 additions and 0 deletions

View File

@@ -53,6 +53,10 @@ public class GatewayParser extends AbstractSimpleBeanDefinitionParser {
protected String getBeanClassName(Element element) {
return IntegrationNamespaceUtils.BASE_PACKAGE + ".gateway.GatewayProxyFactoryBean";
}
protected boolean shouldGenerateIdAsFallback() {
return true;
}
@Override
protected boolean isEligibleAttribute(String attributeName) {

View File

@@ -29,5 +29,8 @@
default-request-channel="requestChannel"
default-reply-channel="replyChannel"
default-reply-timeout="5000"/>
<!-- no assertions for this. The fact that this config does not result in error is sufficient -->
<gateway default-request-channel="nullChannel"/>
</beans:beans>