public interface ModuleRegistrar
registerModules(ModuleRegistry)
gets called, when the ModuleRegistry
searches for module definitions.
For this to work there should be:
- A text file resource "de/innovationgate/wga/modules/registrar.cfg" in the JAR/classes folder that contains the module(s)
- The text file should contain the full qualified classname of the registrar implementation and NOTHING ELSE
ModuleRegistrars are obliged to have a default constructor.Modifier and Type | Method and Description |
---|---|
void |
registerModules(ModuleRegistry registry)
Gets called when the
ModuleRegistry finds the registrar and instantiates it, so the registrar can register all modules known to it with the registry. |
void registerModules(ModuleRegistry registry)
ModuleRegistry
finds the registrar and instantiates it, so the registrar can register all modules known to it with the registry.
Call ModuleRegistry.addModuleDefinition(ModuleDefinition)
for each module to do this.registry
-