Class ExpressionFileListFilter<F>
java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<F>
org.springframework.integration.file.filters.ExpressionFileListFilter<F>
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,FileListFilter<F>
public class ExpressionFileListFilter<F> extends AbstractFileListFilter<F> implements org.springframework.beans.factory.BeanFactoryAware
A SpEL expression based
AbstractFileListFilter implementation.- Since:
- 5.0
-
Constructor Summary
Constructors Constructor Description ExpressionFileListFilter(java.lang.String expression)ExpressionFileListFilter(org.springframework.expression.Expression expression) -
Method Summary
Modifier and Type Method Description booleanaccept(F file)Subclasses must implement this method.voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)Methods inherited from class org.springframework.integration.file.filters.AbstractFileListFilter
filterFiles, supportsSingleFileFiltering
-
Constructor Details
-
ExpressionFileListFilter
public ExpressionFileListFilter(java.lang.String expression) -
ExpressionFileListFilter
public ExpressionFileListFilter(org.springframework.expression.Expression expression)
-
-
Method Details
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException- Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-
accept
Description copied from class:AbstractFileListFilterSubclasses must implement this method.- Specified by:
acceptin interfaceFileListFilter<F>- Specified by:
acceptin classAbstractFileListFilter<F>- Parameters:
file- The file.- Returns:
- true if the file passes the filter.
- See Also:
FileListFilter.supportsSingleFileFiltering()
-