polishing

This commit is contained in:
Mark Fisher
2010-11-03 16:43:52 -04:00
parent 9e178c1de8
commit cc242ae69b
5 changed files with 9 additions and 12 deletions

View File

@@ -77,6 +77,10 @@ public class RmiInboundGateway extends RemotingInboundGatewaySupport implements
public void setRemoteInvocationExecutor(RemoteInvocationExecutor remoteInvocationExecutor) {
this.remoteInvocationExecutor = remoteInvocationExecutor;
}
public String getComponentType() {
return "rmi:inbound-gateway";
}
@Override
protected void onInit() throws Exception {
@@ -99,9 +103,5 @@ public class RmiInboundGateway extends RemotingInboundGatewaySupport implements
}
super.onInit();
}
public String getComponentType(){
return "rmi:inbound-gateway";
}
}

View File

@@ -20,7 +20,7 @@ import org.w3c.dom.Element;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.integration.config.xml.AbstractInboundGatewayParser;
import org.springframework.util.StringUtils;
import org.springframework.integration.config.xml.IntegrationNamespaceUtils;
/**
* Parser for the <inbound-gateway/> element of the 'rmi' namespace.
@@ -45,10 +45,7 @@ public class RmiInboundGatewayParser extends AbstractInboundGatewayParser {
@Override
protected void doPostProcess(BeanDefinitionBuilder builder, Element element) {
String executorRef = element.getAttribute(REMOTE_INVOCATION_EXECUTOR_ATTRIBUTE);
if (StringUtils.hasText(executorRef)) {
builder.addPropertyReference("remoteInvocationExecutor", executorRef);
}
IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, REMOTE_INVOCATION_EXECUTOR_ATTRIBUTE);
}
}

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.

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.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2008 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.