public class DependencyLoader extends Object
| Constructor and Description |
|---|
DependencyLoader(Registry registry)
Creates a new instance connected to the given registry.
|
| Modifier and Type | Method and Description |
|---|---|
void |
loadDependencies(JsMap<LoadMode,elemental.json.JsonArray> clientDependencies)
Triggers loading of the given dependencies.
|
void |
requireHtmlImportsReady()
Prevents eager dependencies from being considered as loaded until
HTMLImports.whenReady has been run. |
static void |
runWhenEagerDependenciesLoaded(Command command)
Adds a command to be run when all eager dependencies have finished
loading.
|
public DependencyLoader(Registry registry)
registry - the global registrypublic static void runWhenEagerDependenciesLoaded(Command command)
If no eager dependencies are currently being loaded, runs the command immediately.
command - the command to run when eager dependencies have been loadedstartEagerDependencyLoading(),
endEagerDependencyLoading()public void loadDependencies(JsMap<LoadMode,elemental.json.JsonArray> clientDependencies)
clientDependencies - the map of the dependencies to load, divided into groups by
load mode, not null.public void requireHtmlImportsReady()
HTMLImports.whenReady has been run.Copyright © 2000–2019 Vaadin Ltd. All rights reserved.