Package com.vaadin.flow.server
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:
ServiceInitEvent.addDependencyFilter(DependencyFilter)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Dependency>
filter(List<Dependency> dependencies, VaadinService service)
Filters the list of dependencies and returns a (possibly) updated version.
-
-
-
Method Detail
-
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 filtersservice
- a Vaadin service- Returns:
- a list of dependencies to load
-
-