Class ModuleManager

java.lang.Object
com.axelor.meta.loader.ModuleManager

public class ModuleManager extends Object
  • Constructor Details

  • Method Details

    • initialize

      public void initialize(boolean withDemo)
      Initialize the application by loading the pending modules.

      Called on application start: only pending (i.e. new, not-yet-installed) modules are loaded, so already-installed modules are left untouched.

      Parameters:
      withDemo - whether to load demo data for the newly installed modules
    • update

      public void update(boolean withDemo, String... moduleNames)
      Update the modules of the database.

      When no module name is given, all modules are updated and any new (not-yet-installed) module is installed; otherwise only the given modules are updated, if they exist.

      Parameters:
      withDemo - whether to load demo data for the newly installed modules
      moduleNames - the modules to update; if empty, all modules are updated
    • update

      public void update(Set<String> moduleNames, Set<Path> paths)
      Reload the given paths of the given modules.

      Only the resources matching paths are processed, restricted to the given modules. Used to hot-reload changed files, e.g. by the view watcher.

      Parameters:
      moduleNames - the names of the modules to reload
      paths - the resource paths to reload
    • restoreMeta

      public void restoreMeta()
    • getResolution

      public static List<String> getResolution()
    • isInstalled

      public static boolean isInstalled(String module)