public class BundleDependencyFilter extends Object implements DependencyFilter
DependencyFilter.FilterContext| Constructor and Description |
|---|
BundleDependencyFilter(WebBrowser browser,
String mainBundlePath,
Map<String,Set<String>> importContainedInBundles)
Creates a filter with the required information.
|
| Modifier and Type | Method and Description |
|---|---|
List<Dependency> |
filter(List<Dependency> dependencies,
DependencyFilter.FilterContext filterContext)
Filters the list of dependencies and returns a (possibly) updated
version.
|
public BundleDependencyFilter(WebBrowser browser, String mainBundlePath, Map<String,Set<String>> importContainedInBundles)
browser - Type of browser handled by this filtermainBundlePath - path to the main bundle that contains common code of the app,
not nullimportContainedInBundles - a map that is used to look up the bundles that imports are
contained in, not nullpublic List<Dependency> filter(List<Dependency> dependencies, DependencyFilter.FilterContext filterContext)
DependencyFilterCalled whenever dependencies are about to be sent to the client side for loading and when templates are parsed on the server side.
filter in interface DependencyFilterdependencies - the collected dependencies, possibly already modified by other
filtersfilterContext - context information, e.g about the target UICopyright © 2025. All rights reserved.