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

@@ -13,43 +13,34 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.integration.ip.config;
import org.w3c.dom.Element;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.core.Conventions;
import org.springframework.integration.adapter.config.AbstractRemotingGatewayParser;
import org.springframework.integration.config.xml.AbstractInboundGatewayParser;
import org.springframework.integration.ip.tcp.SimpleTcpNetInboundGateway;
import org.w3c.dom.Element;
import sun.print.IPPPrintService;
/**
* @author Gary Russell
*
* @since 2.0
*/
public class IpInboundGatewayParser extends AbstractRemotingGatewayParser {
public class IpInboundGatewayParser extends AbstractInboundGatewayParser {
/* (non-Javadoc)
* @see org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser#getBeanClass(org.w3c.dom.Element)
*/
@Override
protected Class getBeanClass(Element element) {
protected Class<?> getBeanClass(Element element) {
return SimpleTcpNetInboundGateway.class;
}
/* (non-Javadoc)
* @see org.springframework.integration.adapter.config.AbstractRemotingGatewayParser#isEligibleAttribute(java.lang.String)
*/
@Override
protected boolean isEligibleAttribute(String attributeName) {
return !attributeName.equals(IpAdapterParserUtils.MESSAGE_FORMAT)
&& super.isEligibleAttribute(attributeName);
}
/* (non-Javadoc)
* @see org.springframework.integration.adapter.config.AbstractRemotingGatewayParser#doPostProcess(org.springframework.beans.factory.support.BeanDefinitionBuilder, org.w3c.dom.Element)
*/
@Override
protected void doPostProcess(BeanDefinitionBuilder builder, Element element) {
builder.addPropertyValue(
@@ -57,5 +48,4 @@ public class IpInboundGatewayParser extends AbstractRemotingGatewayParser {
IpAdapterParserUtils.getMessageFormat(element));
}
}