Class ApplicationContentFilter

java.lang.Object
org.springframework.boot.loader.tools.layer.ApplicationContentFilter
All Implemented Interfaces:
ContentFilter<String>

public class ApplicationContentFilter extends Object implements ContentFilter<String>
ContentFilter that matches application items based on an Ant-style path pattern.
Since:
2.3.0
Author:
Madhura Bhave, Phillip Webb
  • Constructor Details

    • ApplicationContentFilter

      public ApplicationContentFilter(String pattern)
  • Method Details

    • matches

      public boolean matches(String path)
      Description copied from interface: ContentFilter
      Return if the filter matches the specified item.
      Specified by:
      matches in interface ContentFilter<String>
      Parameters:
      path - the item to test
      Returns:
      if the filter matches