Package com.axelor.meta.loader
Class ModuleManager
java.lang.Object
com.axelor.meta.loader.ModuleManager
-
Constructor Summary
ConstructorsConstructorDescriptionModuleManager(AuthService authService, MetaModuleRepository modules, ViewLoader viewLoader, ModelLoader modelLoader, I18nLoader i18nLoader, com.axelor.meta.loader.DataLoader dataLoader, com.axelor.meta.loader.DemoLoader demoLoader) -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(boolean withDemo) Initialize the application by loading the pending modules.static booleanisInstalled(String module) voidvoidUpdate the modules of the database.voidReload the given paths of the given modules.
-
Constructor Details
-
ModuleManager
@Inject public ModuleManager(AuthService authService, MetaModuleRepository modules, ViewLoader viewLoader, ModelLoader modelLoader, I18nLoader i18nLoader, com.axelor.meta.loader.DataLoader dataLoader, com.axelor.meta.loader.DemoLoader demoLoader)
-
-
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
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 modulesmoduleNames- the modules to update; if empty, all modules are updated
-
update
Reload the given paths of the given modules.Only the resources matching
pathsare 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 reloadpaths- the resource paths to reload
-
restoreMeta
public void restoreMeta() -
getResolution
-
isInstalled
-