removed deprecated RemotingInboundGatewaySupport

This commit is contained in:
Mark Fisher
2011-11-22 20:48:30 -05:00
parent 281e198679
commit dfd039b78e
2 changed files with 21 additions and 54 deletions

View File

@@ -1,50 +0,0 @@
/*
* 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.integration.gateway;
import org.springframework.integration.Message;
/**
* Support class for inbound Messaging Gateways.
*
* @author Mark Fisher
*
* @deprecated as of 2.0. Will be removed in 2.1.
*/
@Deprecated
public abstract class RemotingInboundGatewaySupport extends MessagingGatewaySupport implements RequestReplyExchanger {
private volatile boolean expectReply = true;
/**
* Specify whether the gateway should be expected to return a reply.
* The default is '<code>true</code>'.
*/
public void setExpectReply(boolean expectReply) {
this.expectReply = expectReply;
}
public Message<?> exchange(Message<?> message) {
if (this.expectReply) {
return this.sendAndReceiveMessage(message);
}
this.send(message);
return null;
}
}