Renamed Source to MessageSource.

This commit is contained in:
Mark Fisher
2008-06-30 22:57:23 +00:00
parent 07b2179baa
commit 5235537c80
17 changed files with 39 additions and 40 deletions

View File

@@ -28,7 +28,7 @@ import org.springframework.integration.message.Message;
import org.springframework.integration.message.MessageCreator;
import org.springframework.integration.message.MessageDeliveryAware;
import org.springframework.integration.message.MessagingException;
import org.springframework.integration.message.Source;
import org.springframework.integration.message.MessageSource;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;
@@ -38,7 +38,7 @@ import org.springframework.util.StringUtils;
*
* @author Marius Bogoevici
*/
public abstract class AbstractDirectorySource implements Source<Object>, MessageDeliveryAware {
public abstract class AbstractDirectorySource implements MessageSource<Object>, MessageDeliveryAware {
public final static String FILE_INFO_PROPERTY = "file.info";

View File

@@ -28,7 +28,7 @@ import org.springframework.integration.ConfigurationException;
import org.springframework.integration.message.MessageCreator;
import org.springframework.integration.message.MessageDeliveryAware;
import org.springframework.integration.message.MessagingException;
import org.springframework.integration.message.Source;
import org.springframework.integration.message.MessageSource;
import org.springframework.util.Assert;
/**
@@ -37,7 +37,7 @@ import org.springframework.util.Assert;
* @author Mark Fisher
* @author Marius Bogoevici
*/
public class FileSource extends AbstractDirectorySource implements Source<Object>, InitializingBean, MessageDeliveryAware {
public class FileSource extends AbstractDirectorySource implements MessageSource<Object>, InitializingBean, MessageDeliveryAware {
private final File directory;

View File

@@ -21,7 +21,7 @@ import javax.jms.Destination;
import org.springframework.integration.message.GenericMessage;
import org.springframework.integration.message.Message;
import org.springframework.integration.message.Source;
import org.springframework.integration.message.MessageSource;
import org.springframework.jms.core.JmsTemplate;
/**
@@ -32,7 +32,7 @@ import org.springframework.jms.core.JmsTemplate;
*
* @author Mark Fisher
*/
public class JmsSource extends AbstractJmsTemplateBasedAdapter implements Source<Object> {
public class JmsSource extends AbstractJmsTemplateBasedAdapter implements MessageSource<Object> {
public JmsSource(JmsTemplate jmsTemplate) {
super(jmsTemplate);

View File

@@ -23,14 +23,14 @@ import java.io.InputStream;
import org.springframework.integration.message.GenericMessage;
import org.springframework.integration.message.Message;
import org.springframework.integration.message.MessagingException;
import org.springframework.integration.message.Source;
import org.springframework.integration.message.MessageSource;
/**
* A pollable source for receiving bytes from an {@link InputStream}.
*
* @author Mark Fisher
*/
public class ByteStreamSource implements Source<byte[]> {
public class ByteStreamSource implements MessageSource<byte[]> {
private BufferedInputStream stream;

View File

@@ -24,7 +24,7 @@ import java.io.UnsupportedEncodingException;
import org.springframework.integration.ConfigurationException;
import org.springframework.integration.message.MessagingException;
import org.springframework.integration.message.Source;
import org.springframework.integration.message.MessageSource;
import org.springframework.integration.message.StringMessage;
import org.springframework.util.Assert;
@@ -33,7 +33,7 @@ import org.springframework.util.Assert;
*
* @author Mark Fisher
*/
public class CharacterStreamSource implements Source<String> {
public class CharacterStreamSource implements MessageSource<String> {
private final BufferedReader reader;