Renamed the MessageHandler interface for remote proxies to RemoteMessageHandler.

This commit is contained in:
Mark Fisher
2008-11-03 14:25:04 +00:00
parent 39a8486ac8
commit 81b75415ff
8 changed files with 19 additions and 19 deletions

View File

@@ -23,7 +23,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.integration.adapter.MessageHandler;
import org.springframework.integration.adapter.RemoteMessageHandler;
import org.springframework.integration.adapter.RemotingInboundGatewaySupport;
import org.springframework.integration.core.MessagingException;
import org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter;
@@ -67,7 +67,7 @@ public class HttpInvokerInboundGateway extends RemotingInboundGatewaySupport imp
public void afterPropertiesSet() {
HttpInvokerServiceExporter exporter = new HttpInvokerServiceExporter();
exporter.setService(this);
exporter.setServiceInterface(MessageHandler.class);
exporter.setServiceInterface(RemoteMessageHandler.class);
exporter.afterPropertiesSet();
this.exporter = exporter;
}

View File

@@ -17,7 +17,7 @@
package org.springframework.integration.httpinvoker;
import org.springframework.integration.adapter.AbstractRemotingOutboundGateway;
import org.springframework.integration.adapter.MessageHandler;
import org.springframework.integration.adapter.RemoteMessageHandler;
import org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean;
/**
@@ -33,12 +33,12 @@ public class HttpInvokerOutboundGateway extends AbstractRemotingOutboundGateway
@Override
protected MessageHandler createHandlerProxy(String url) {
protected RemoteMessageHandler createHandlerProxy(String url) {
HttpInvokerProxyFactoryBean proxyFactory = new HttpInvokerProxyFactoryBean();
proxyFactory.setServiceInterface(MessageHandler.class);
proxyFactory.setServiceInterface(RemoteMessageHandler.class);
proxyFactory.setServiceUrl(url);
proxyFactory.afterPropertiesSet();
return (MessageHandler) proxyFactory.getObject();
return (RemoteMessageHandler) proxyFactory.getObject();
}
}