Class ExclusionFilter

java.lang.Object
com.vaadin.flow.server.frontend.ExclusionFilter
All Implemented Interfaces:
Serializable

public class ExclusionFilter extends Object implements Serializable
Excludes dependencies listed in an "exclusions" array of vaadin-*versions.json file from a package.json.
See Also:
  • Constructor Details

    • ExclusionFilter

      public ExclusionFilter(ClassFinder finder, boolean reactEnabled)
      Create a new exclusion filter.
      Parameters:
      finder - the class finder to use
      reactEnabled - whether React is enabled
    • ExclusionFilter

      public ExclusionFilter(ClassFinder finder, boolean reactEnabled, boolean excludeWebComponentNpmPackages)
      Create a new exclusion filter.
      Parameters:
      finder - the class finder to use
      reactEnabled - whether React is enabled
      excludeWebComponentNpmPackages - whether to exclude web component npm packages
  • Method Details

    • exclude

      public Map<String,String> exclude(Map<String,String> dependencies) throws IOException
      Exclude dependencies from the given map based on the vaadin-*versions.json files.
      Parameters:
      dependencies - the dependencies to filter
      Returns:
      the filtered dependencies
      Throws:
      IOException - if an I/O error occurs