Renamed PollableFileSource to FileReadingMessageSource.
This commit is contained in:
@@ -23,7 +23,7 @@ import java.util.concurrent.LinkedBlockingQueue;
|
||||
/**
|
||||
* {@link FileListFilter} that passes files only one time. This can
|
||||
* conveniently be used to prevent duplication of files, as is done in
|
||||
* {@link PollableFileSource}.
|
||||
* {@link FileReadingMessageSource}.
|
||||
*
|
||||
* @author Iwein Fuld
|
||||
*/
|
||||
|
||||
@@ -52,9 +52,9 @@ import org.springframework.util.Assert;
|
||||
*
|
||||
* @author Iwein Fuld
|
||||
*/
|
||||
public class PollableFileSource implements MessageSource<File>, MessageDeliveryAware<File> {
|
||||
public class FileReadingMessageSource implements MessageSource<File>, MessageDeliveryAware<File> {
|
||||
|
||||
private static final Log logger = LogFactory.getLog(PollableFileSource.class);
|
||||
private static final Log logger = LogFactory.getLog(FileReadingMessageSource.class);
|
||||
|
||||
private volatile File inputDirectory;
|
||||
|
||||
@@ -27,7 +27,7 @@ import org.springframework.integration.config.xml.AbstractPollingInboundChannelA
|
||||
import org.springframework.integration.file.AcceptOnceFileListFilter;
|
||||
import org.springframework.integration.file.CompositeFileListFilter;
|
||||
import org.springframework.integration.file.PatternMatchingFileListFilter;
|
||||
import org.springframework.integration.file.PollableFileSource;
|
||||
import org.springframework.integration.file.FileReadingMessageSource;
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
@@ -41,7 +41,7 @@ public class FileInboundChannelAdapterParser extends AbstractPollingInboundChann
|
||||
|
||||
@Override
|
||||
protected String parseSource(Element element, ParserContext parserContext) {
|
||||
BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(PollableFileSource.class);
|
||||
BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(FileReadingMessageSource.class);
|
||||
String directory = element.getAttribute("directory");
|
||||
if (StringUtils.hasText(directory)) {
|
||||
builder.addPropertyValue("inputDirectory", directory);
|
||||
|
||||
Reference in New Issue
Block a user