org.springframework.integration.file.entries
Class PatternMatchingEntryListFilter<T>
java.lang.Object
org.springframework.integration.file.entries.AbstractEntryListFilter<T>
org.springframework.integration.file.entries.PatternMatchingEntryListFilter<T>
- Type Parameters:
T
- the type of entry
- All Implemented Interfaces:
- InitializingBean, EntryListFilter<T>
public class PatternMatchingEntryListFilter<T>
- extends AbstractEntryListFilter<T>
- implements InitializingBean
experimental
Filters a listing of entries (T) by qualifying their 'name' (as determined by EntryNamer
)
against a regular expression (an instance of Pattern
)
- Author:
- Josh Long
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PatternMatchingEntryListFilter
public PatternMatchingEntryListFilter(EntryNamer<T> en,
String p)
PatternMatchingEntryListFilter
public PatternMatchingEntryListFilter(EntryNamer<T> en,
Pattern p)
setPattern
public void setPattern(Pattern pattern)
setPatternExpression
public void setPatternExpression(String patternExpression)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Overrides:
afterPropertiesSet
in class AbstractEntryListFilter<T>
- Throws:
Exception
accept
public boolean accept(T t)
- Specified by:
accept
in class AbstractEntryListFilter<T>
setEntryNamer
public void setEntryNamer(EntryNamer<T> entryNamer)
Copyright © 2010. All Rights Reserved.