Renamed Source to MessageSource.
This commit is contained in:
@@ -39,7 +39,7 @@ import org.springframework.integration.message.ErrorMessage;
|
||||
import org.springframework.integration.message.GenericMessage;
|
||||
import org.springframework.integration.message.Message;
|
||||
import org.springframework.integration.message.MessageDeliveryException;
|
||||
import org.springframework.integration.message.Source;
|
||||
import org.springframework.integration.message.MessageSource;
|
||||
import org.springframework.integration.message.StringMessage;
|
||||
import org.springframework.integration.scheduling.PollingSchedule;
|
||||
import org.springframework.integration.scheduling.Subscription;
|
||||
@@ -258,7 +258,7 @@ public class MessageBusTests {
|
||||
assertTrue(messageBusAwareBean.getMessageBus() == context.getBean("bus"));
|
||||
}
|
||||
|
||||
private static class FailingSource implements Source<Object> {
|
||||
private static class FailingSource implements MessageSource<Object> {
|
||||
|
||||
private CountDownLatch latch;
|
||||
|
||||
|
||||
@@ -17,13 +17,13 @@
|
||||
package org.springframework.integration.config;
|
||||
|
||||
import org.springframework.integration.message.Message;
|
||||
import org.springframework.integration.message.Source;
|
||||
import org.springframework.integration.message.MessageSource;
|
||||
import org.springframework.integration.message.StringMessage;
|
||||
|
||||
/**
|
||||
* @author Mark Fisher
|
||||
*/
|
||||
public class TestSource implements Source {
|
||||
public class TestSource implements MessageSource {
|
||||
|
||||
public Message<?> receive() {
|
||||
return new StringMessage("test");
|
||||
|
||||
@@ -28,7 +28,7 @@ import java.util.concurrent.TimeUnit;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.integration.message.Message;
|
||||
import org.springframework.integration.message.Source;
|
||||
import org.springframework.integration.message.MessageSource;
|
||||
import org.springframework.integration.message.StringMessage;
|
||||
import org.springframework.integration.message.Target;
|
||||
|
||||
@@ -68,7 +68,7 @@ public class DirectChannelTests {
|
||||
|
||||
@Test
|
||||
public void testReceive() {
|
||||
DirectChannel channel = new DirectChannel(new Source<String>() {
|
||||
DirectChannel channel = new DirectChannel(new MessageSource<String>() {
|
||||
public Message<String> receive() {
|
||||
return new StringMessage("foo");
|
||||
}
|
||||
@@ -147,7 +147,7 @@ public class DirectChannelTests {
|
||||
}
|
||||
|
||||
|
||||
private static class MessageReturningTestSource implements Source<String> {
|
||||
private static class MessageReturningTestSource implements MessageSource<String> {
|
||||
|
||||
private final String messageText;
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.springframework.integration.message.CommandMessage;
|
||||
import org.springframework.integration.message.GenericMessage;
|
||||
import org.springframework.integration.message.Message;
|
||||
import org.springframework.integration.message.PollCommand;
|
||||
import org.springframework.integration.message.Source;
|
||||
import org.springframework.integration.message.MessageSource;
|
||||
|
||||
/**
|
||||
* @author Mark Fisher
|
||||
@@ -47,7 +47,7 @@ public class SourceEndpointTests {
|
||||
}
|
||||
|
||||
|
||||
private static class TestSource implements Source<String> {
|
||||
private static class TestSource implements MessageSource<String> {
|
||||
|
||||
private String message;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user