|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IModuleManager
A module manager. It seems a manager who's responsible for loading and managing the different modules of the application.
Method Summary | |
---|---|
void |
addModuleListener(ModuleListener listener)
Add a module listener. |
java.lang.String |
canModuleLaunched(ModuleContainer module)
Test if a module can ben launched. |
void |
choosePrimaryModule()
Choose the primary module to launch. |
void |
disableModule(ModuleContainer module)
Disable the module. |
void |
enableModule(ModuleContainer module)
Enable a module. |
ModuleContainer |
getModule(java.lang.String name)
Return the module with the name. |
java.util.Collection<ModuleContainer> |
getModules()
Return all the modules. |
java.util.List<ModuleDescription> |
getModulesFromRepository()
Return all the modules of the application repository. |
ModuleContainer |
getPrimaryModule()
Return the current primary module. |
java.util.List<ModuleContainer> |
getPrimaryModules()
Return all the primary modules. |
Repository |
getRepository()
Return the repository of the application. |
void |
install(java.lang.String versionsFileURL)
Install the module from the versions file. |
boolean |
installModule(java.io.File file)
Install the module of the file. |
boolean |
isCollectionModule()
Indicate if the primary module is collection based. |
boolean |
isInstalled(java.lang.String module)
Test if the module is installed. |
void |
launchPrimaryModule()
Launch the primary module. |
void |
loadModule(ModuleContainer module)
Load the module. |
boolean |
plugCollection(java.lang.String collection,
java.lang.String password,
boolean create)
Plug the collection. |
void |
plugModules()
Plug the modules. |
void |
prePlugModules()
Preplug the modules. |
void |
removeModuleListener(ModuleListener listener)
Remove a module listener. |
void |
setPrimaryModule(ModuleContainer module)
Set the primary module. |
void |
switchPrimaryModule()
Switch the primary module. |
void |
uninstallModule(ModuleContainer module)
Uninstall the module. |
void |
unplugModules()
Unplug the modules. |
Method Detail |
---|
ModuleContainer getPrimaryModule()
java.util.Collection<ModuleContainer> getModules()
java.util.List<ModuleContainer> getPrimaryModules()
void addModuleListener(ModuleListener listener)
listener
- The listener to add.void removeModuleListener(ModuleListener listener)
listener
- The listener to remove.java.util.List<ModuleDescription> getModulesFromRepository()
Repository getRepository()
boolean isInstalled(java.lang.String module)
module
- The module name.
ModuleContainer getModule(java.lang.String name)
name
- The name of the module.
void install(java.lang.String versionsFileURL)
versionsFileURL
- The URL of the versions file.void choosePrimaryModule()
void unplugModules()
void enableModule(ModuleContainer module)
module
- The module to enable.void prePlugModules()
void plugModules()
void disableModule(ModuleContainer module)
module
- The module to disable.boolean installModule(java.io.File file)
file
- The file of the module.
void uninstallModule(ModuleContainer module)
module
- The module to uninstall.java.lang.String canModuleLaunched(ModuleContainer module)
module
- The module to be launched.
void loadModule(ModuleContainer module)
module
- The module to load.void launchPrimaryModule()
void setPrimaryModule(ModuleContainer module)
module
- The module to set as primary.void switchPrimaryModule()
boolean isCollectionModule()
boolean plugCollection(java.lang.String collection, java.lang.String password, boolean create)
collection
- The collection to use.password
- The password of the collection.create
- A boolea flag indicating if we must create the collection or not.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |