com.vaadin.server.
Interface DependencyFilter
-
All Superinterfaces:
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
,@JavaScript
and@HtmlImport
.Since:
8.1
See Also:
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DependencyFilter.FilterContext
Provides context information for the dependency filter operation.
-
Method Summary
All Methods Modifier and Type Method Description List<Dependency>
filter​(List<Dependency> dependencies, DependencyFilter.FilterContext filterContext)
Filters the list of dependencies and returns a (possibly) updated version.
-
-
-
Method Detail
-
filter
List<Dependency> filter​(List<Dependency> dependencies, DependencyFilter.FilterContext filterContext)
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.
Parameters:
dependencies
- the collected dependencies, possibly already modified by other filtersfilterContext
- context information, e.g about the target UIReturns:
a list of dependencies to load
-
-