public interface IModuleConfigRepository
Interface for the module configuration repository.
Modifier and Type | Method and Description |
---|---|
void |
add(ModuleConfig... configList)
Adds a module configuration to the repository
An exception will be thrown if a module with the same id already exist
|
void |
close()
Closes the module config registry and release all resources associated to it
|
void |
commit()
Commits last configuration changes to the persistent store (if any)
|
boolean |
contains(java.lang.String moduleID)
Checks if A module with the given ID exists
|
ModuleConfig |
get(java.lang.String moduleID)
Retrieves the configuration of the module with the given id
|
java.util.List<ModuleConfig> |
getAllModulesConfigurations() |
void |
remove(java.lang.String... moduleIDs)
Removes the module configuration with the given id from the repository
|
void |
update(ModuleConfig... configList)
Updates the module configuration with the given id in the repository
If the id does not exist, the configuration entry is added with the add method
|
java.util.List<ModuleConfig> getAllModulesConfigurations()
boolean contains(java.lang.String moduleID)
moduleID
- ModuleConfig get(java.lang.String moduleID)
moduleID
- id of modulevoid add(ModuleConfig... configList)
configList
- void update(ModuleConfig... configList)
configList
- void remove(java.lang.String... moduleIDs)
moduleIDs
- void commit()
void close()