diff --git a/spring-integration-file/src/main/java/org/springframework/integration/file/FileReadingMessageSource.java b/spring-integration-file/src/main/java/org/springframework/integration/file/FileReadingMessageSource.java index 7522555e15..c33dd0f450 100644 --- a/spring-integration-file/src/main/java/org/springframework/integration/file/FileReadingMessageSource.java +++ b/spring-integration-file/src/main/java/org/springframework/integration/file/FileReadingMessageSource.java @@ -67,6 +67,11 @@ import org.springframework.util.Assert; * a known suffix), composed with the default {@link AcceptOnceFileListFilter} * would allow for this. *
+ * If a external {@link DirectoryScanner} is used, then the {@link FileLocker} + * and {@link FileListFilter} objects should be set on the external + * {@link DirectoryScanner}, not the instance of FileReadingMessageSource. An + * {@link IllegalStateException} will result otherwise. + *
* A {@link Comparator} can be used to ensure internal ordering of the Files in
* a {@link PriorityBlockingQueue}. This does not provide the same guarantees as
* a {@link ResequencingMessageGroupProcessor}, but in cases where writing files
@@ -80,6 +85,7 @@ import org.springframework.util.Assert;
* @author Oleg Zhurakousky
* @author Gary Russell
* @author Artem Bilan
+ * @author Steven Pearce
*/
public class FileReadingMessageSource extends AbstractMessageSource