Package com.vaadin.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
- Since:
- 8.1
- See Also:
ServiceInitEvent.addDependencyFilter(DependencyFilter)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDependencyFilter.FilterContextProvides context information for the dependency filter operation.
-
Method Summary
All Methods Instance Methods Abstract 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 UI- Returns:
- a list of dependencies to load
-
-