Class ModuleRegistry
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.core.workflow.ModuleRegistry
-
public class ModuleRegistry extends Object
This class define a registry for modules.- Since:
- 2.0
- Author:
- Laurent Jourdren
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Module>
getAllModules()
Get all the modules.static ModuleRegistry
getInstance()
Retrieve the singleton static instance of ModuleRegistry.Module
loadModule(String moduleName, String version)
Load a module.void
reload()
Reload the list of available modules.
-
-
-
Method Detail
-
getInstance
public static ModuleRegistry getInstance()
Retrieve the singleton static instance of ModuleRegistry.- Returns:
- A ModuleRegistry instance
-
loadModule
public Module loadModule(String moduleName, String version)
Load a module.- Parameters:
moduleName
- name of the required moduleversion
- version of the required module- Returns:
- a Module object or null if the requested module has been not found
-
reload
public void reload()
Reload the list of available modules.
-
-