org.springframework.integration.file.entries
Class AbstractEntryListFilter<T>

java.lang.Object
  extended by org.springframework.integration.file.entries.AbstractEntryListFilter<T>
All Implemented Interfaces:
InitializingBean, EntryListFilter<T>
Direct Known Subclasses:
AbstractFileLockerFilter, AcceptAllEntryListFilter, AcceptOnceEntryFileListFilter, PatternMatchingEntryListFilter, SimplePatternFileListFilter, SingleEntryAdaptingEntryListFilter

public abstract class AbstractEntryListFilter<T>
extends java.lang.Object
implements InitializingBean, EntryListFilter<T>

A convenience base class for any EntryListFilter whose criteria can be evaluated against each File in isolation. If the entire List of files is required for evaluation, implement the EntryListFilter interface directly.


Constructor Summary
AbstractEntryListFilter()
           
 
Method Summary
abstract  boolean accept(T t)
           
 void afterPropertiesSet()
           
 java.util.List<T> filterEntries(T[] entries)
          Filters out entries and returns the entries that are left in a list, or an empty list when a null is passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEntryListFilter

public AbstractEntryListFilter()
Method Detail

accept

public abstract boolean accept(T t)

filterEntries

public java.util.List<T> filterEntries(T[] entries)
Filters out entries and returns the entries that are left in a list, or an empty list when a null is passed in.

Specified by:
filterEntries in interface EntryListFilter<T>

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
java.lang.Exception