Package com.vaadin.client
Class DependencyLoader
- java.lang.Object
-
- com.vaadin.client.DependencyLoader
-
public class DependencyLoader extends Object
Handles loading of dependencies (style sheets and scripts) in the application. UseApplicationConfiguration.runWhenDependenciesLoaded(Command)to execute a command after all dependencies have finished loading.- Since:
- 7.7.49
- Author:
- Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor Description DependencyLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidloadDependencies(ValueMap json)Loads the any dependencies present in the given json snippet.voidsetConnection(ApplicationConnection connection)Sets the ApplicationConnection this instance is connected to.
-
-
-
Method Detail
-
setConnection
public void setConnection(ApplicationConnection connection)
Sets the ApplicationConnection this instance is connected to. Only used internally.- Parameters:
connection- The ApplicationConnection for this instance
-
loadDependencies
public void loadDependencies(ValueMap json)
Loads the any dependencies present in the given json snippet. Scans the key "scriptDependencies" for JavaScripts and the key "styleDependencies" for style sheets. Ensures that the given JavaScript dependencies are loaded in the given order. Does not ensure anything about stylesheet order.- Parameters:
json- the JSON containing the dependencies to load
-
-