INT-842 moved AbstractRemotingGatewayParser to the core 'config.xml' package and renamed AbstractInboundGatewayParser

This commit is contained in:
Mark Fisher
2010-04-30 23:15:08 +00:00
parent e0cc920d56
commit 4f56f3650b
5 changed files with 105 additions and 39 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2009 the original author or authors.
* Copyright 2002-2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,27 +15,29 @@
*/
package org.springframework.integration.ws.config;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.integration.adapter.config.AbstractRemotingGatewayParser;
import org.springframework.util.StringUtils;
import org.w3c.dom.Element;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.integration.config.xml.AbstractInboundGatewayParser;
import org.springframework.util.StringUtils;
/**
*
* @author Iwein Fuld
*
*/
public class WebServiceInboundGatewayParser extends
AbstractRemotingGatewayParser {
public class WebServiceInboundGatewayParser extends AbstractInboundGatewayParser {
@Override
protected String getBeanClassName(Element element) {
String simpleClassName = (StringUtils.hasText(element
.getAttribute("marshaller"))) ? "MarshallingWebServiceInboundGateway"
: "SimpleWebServiceInboundGateway";
String simpleClassName = (StringUtils.hasText(element.getAttribute("marshaller"))) ?
"MarshallingWebServiceInboundGateway" : "SimpleWebServiceInboundGateway";
return "org.springframework.integration.ws." + simpleClassName;
}
@Override
protected boolean isEligibleAttribute(String attributeName) {
return !(attributeName.endsWith("marshaller")) && super.isEligibleAttribute(attributeName);
}
@Override
protected void doPostProcess(BeanDefinitionBuilder builder, Element element) {
String marshallerRef = element.getAttribute("marshaller");
@@ -47,8 +49,5 @@ public class WebServiceInboundGatewayParser extends
}
}
}
@Override
protected boolean isEligibleAttribute(String attributeName) {
return !(attributeName.endsWith("marshaller")) && super.isEligibleAttribute(attributeName);
}
}