Interface DependencyFilter

All Superinterfaces:
Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DependencyFilter extends Serializable
Filter for dependencies loaded using @StyleSheet, and * @JavaScript.
Since:
1.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    filter(List<Dependency> dependencies, VaadinService service)
    Filters the list of dependencies and returns a (possibly) updated version.
  • Method Details

    • filter

      List<Dependency> filter(List<Dependency> dependencies, VaadinService service)
      Filters the list of dependencies and returns a (possibly) updated version.

      Called whenever dependencies are about to be sent to the client side for loading and when templates are parsed on the server side.

      Parameters:
      dependencies - the collected dependencies, possibly already modified by other filters
      service - a Vaadin service
      Returns:
      a list of dependencies to load