Class ExpressionFileListFilter<F>

java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<F>
org.springframework.integration.file.filters.ExpressionFileListFilter<F>
Type Parameters:
F - The type that will be filtered.
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 Details

    • ExpressionFileListFilter

      public ExpressionFileListFilter(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:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • accept

      public boolean accept(F file)
      Description copied from class: AbstractFileListFilter
      Subclasses must implement this method.
      Specified by:
      accept in interface FileListFilter<F>
      Specified by:
      accept in class AbstractFileListFilter<F>
      Parameters:
      file - The file.
      Returns:
      true if the file passes the filter.
      See Also: