Class AbstractFileLockerFilter
java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<java.io.File>
org.springframework.integration.file.locking.AbstractFileLockerFilter
- All Implemented Interfaces:
FileLocker
,FileListFilter<java.io.File>
- Direct Known Subclasses:
NioFileLocker
public abstract class AbstractFileLockerFilter extends AbstractFileListFilter<java.io.File> implements FileLocker
Convenience base class for implementing FileLockers that check a lock before accepting a file. This is needed
when used in combination with a FileReadingMessageSource through a DirectoryScanner.
- Since:
- 2.0
-
Constructor Summary
Constructors Constructor Description AbstractFileLockerFilter()
-
Method Summary
Modifier and Type Method Description boolean
accept(java.io.File file)
Subclasses must implement this method.Methods inherited from class org.springframework.integration.file.filters.AbstractFileListFilter
filterFiles, supportsSingleFileFiltering
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.integration.file.filters.FileListFilter
isForRecursion
Methods inherited from interface org.springframework.integration.file.FileLocker
isLockable, lock, unlock
-
Constructor Details
-
AbstractFileLockerFilter
public AbstractFileLockerFilter()
-
-
Method Details
-
accept
public boolean accept(java.io.File file)Description copied from class:AbstractFileListFilter
Subclasses must implement this method.- Specified by:
accept
in interfaceFileListFilter<java.io.File>
- Specified by:
accept
in classAbstractFileListFilter<java.io.File>
- Parameters:
file
- The file.- Returns:
- true if the file passes the filter.
- See Also:
FileListFilter.supportsSingleFileFiltering()
-