Spring Integration

org.springframework.integration.file.locking
Class AbstractFileLockerFilter

java.lang.Object
  extended by org.springframework.integration.file.entries.AbstractEntryListFilter<File>
      extended by org.springframework.integration.file.locking.AbstractFileLockerFilter
All Implemented Interfaces:
InitializingBean, EntryListFilter<File>, FileLocker
Direct Known Subclasses:
NioFileLocker

public abstract class AbstractFileLockerFilter
extends AbstractEntryListFilter<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
Author:
Iwein Fuld

Constructor Summary
AbstractFileLockerFilter()
           
 
Method Summary
 boolean accept(File file)
           
 
Methods inherited from class org.springframework.integration.file.entries.AbstractEntryListFilter
afterPropertiesSet, filterEntries
 
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.FileLocker
isLockable, lock, unlock
 

Constructor Detail

AbstractFileLockerFilter

public AbstractFileLockerFilter()
Method Detail

accept

public boolean accept(File file)
Specified by:
accept in class AbstractEntryListFilter<File>

Spring Integration

Copyright © 2010. All Rights Reserved.