Class DependencyLoader

    • Constructor Detail

      • DependencyLoader

        public DependencyLoader()
    • 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. Handles all dependencies found with the key "dependencies". Ensures that
        • JavaScript dependencies are loaded in the given order.
        • HTML imports are loaded after all JavaScripts are loaded and executed.
        • Style sheets are loaded and evaluated in some undefined order
        Parameters:
        json - the JSON containing the dependencies to load