Removed the 'targetChannel' from ReplyMessageHolder for now (not being used yet) and made CronSequenceGenerator package protected for now.
This commit is contained in:
@@ -98,14 +98,7 @@ public abstract class AbstractReplyProducingMessageHandler extends AbstractMessa
|
||||
}
|
||||
return;
|
||||
}
|
||||
Object targetChannelValue = replyMessageHolder.getTargetChannel();
|
||||
MessageChannel replyChannel = null;
|
||||
if (targetChannelValue == null) {
|
||||
replyChannel = this.resolveReplyChannel(message);
|
||||
}
|
||||
else if (targetChannelValue instanceof String) {
|
||||
replyChannel = this.channelResolver.resolveChannelName((String) targetChannelValue);
|
||||
}
|
||||
MessageChannel replyChannel = this.resolveReplyChannel(message);
|
||||
MessageHeaders requestHeaders = message.getHeaders();
|
||||
for (MessageBuilder<?> builder : replyMessageHolder.builders()) {
|
||||
builder.copyHeadersIfAbsent(requestHeaders);
|
||||
|
||||
@@ -21,7 +21,6 @@ import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.integration.core.Message;
|
||||
import org.springframework.integration.core.MessageChannel;
|
||||
import org.springframework.integration.message.MessageBuilder;
|
||||
|
||||
/**
|
||||
@@ -31,8 +30,6 @@ public class ReplyMessageHolder {
|
||||
|
||||
private final List<MessageBuilder<?>> builders = new ArrayList<MessageBuilder<?>>();
|
||||
|
||||
private volatile Object targetChannel;
|
||||
|
||||
|
||||
public MessageBuilder<?> set(Object messageOrPayload) {
|
||||
return this.createAndAddBuilder(messageOrPayload, true);
|
||||
@@ -42,18 +39,6 @@ public class ReplyMessageHolder {
|
||||
return this.createAndAddBuilder(messageOrPayload, false);
|
||||
}
|
||||
|
||||
public void setTargetChannel(MessageChannel targetChannel) {
|
||||
this.targetChannel = targetChannel;
|
||||
}
|
||||
|
||||
public void setTargetChannelName(String targetChannelName) {
|
||||
this.targetChannel = targetChannelName;
|
||||
}
|
||||
|
||||
protected Object getTargetChannel() {
|
||||
return this.targetChannel;
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return this.builders.isEmpty();
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ import org.springframework.util.StringUtils;
|
||||
*
|
||||
* @author Dave Syer
|
||||
*/
|
||||
public class CronSequenceGenerator {
|
||||
class CronSequenceGenerator {
|
||||
|
||||
private final BitSet seconds = new BitSet(60);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user