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. 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