fixed misspelled class/method
This commit is contained in:
@@ -30,12 +30,12 @@ import org.springframework.util.Assert;
|
||||
*/
|
||||
public class GatewayInvokingMessageHandler extends AbstractReplyProducingMessageHandler {
|
||||
|
||||
private GenericSendAndRecieveGateway gateway;
|
||||
private GenericSendAndReceiveGateway gateway;
|
||||
|
||||
/**
|
||||
* @param gateway
|
||||
*/
|
||||
public GatewayInvokingMessageHandler(GenericSendAndRecieveGateway gateway) {
|
||||
public GatewayInvokingMessageHandler(GenericSendAndReceiveGateway gateway) {
|
||||
Assert.notNull(gateway, "gateway must not be null");
|
||||
this.gateway = gateway;
|
||||
}
|
||||
@@ -49,7 +49,7 @@ public class GatewayInvokingMessageHandler extends AbstractReplyProducingMessage
|
||||
* Will simply delegate to the original gateway
|
||||
*/
|
||||
protected Object handleRequestMessage(Message<?> requestMessage) {
|
||||
return gateway.sendAndRecieve(requestMessage);
|
||||
return gateway.sendAndReceive(requestMessage);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -170,7 +170,7 @@ public class GatewayProxyFactoryBean extends AbstractEndpoint implements Factory
|
||||
|
||||
private Class<?> determineServiceInterface() {
|
||||
if (this.serviceInterface == null) {
|
||||
this.serviceInterface = GenericSendAndRecieveGateway.class;
|
||||
this.serviceInterface = GenericSendAndReceiveGateway.class;
|
||||
}
|
||||
return this.serviceInterface;
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.integration.gateway;
|
||||
|
||||
import org.springframework.integration.core.Message;
|
||||
@@ -24,7 +25,8 @@ import org.springframework.integration.core.Message;
|
||||
* @author Oleg Zhurakousky
|
||||
* @since 2.0
|
||||
*/
|
||||
interface GenericSendAndRecieveGateway {
|
||||
interface GenericSendAndReceiveGateway {
|
||||
|
||||
public Message<?> sendAndReceive(Message<?> message);
|
||||
|
||||
public Message<?> sendAndRecieve(Message<?> message);
|
||||
}
|
||||
Reference in New Issue
Block a user