Class ModuleCache
java.lang.Object
com.aquima.interactions.portal.model.ModuleCache
- All Implemented Interfaces:
IModuleVisitor
,IModuleCache
This class is used to initialize the modules of an application.
- Since:
- 7.1
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionModuleCache
(Solution solution, IInitializationReport report, IApplicationDS datasource, boolean processEnabled) -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method should be invoked for each module that is used by the application.This method returns the main module of the application.This method returns the module definition for the specified ID.String[]
This method returns the names of the all modules in the cache.protected IModule
loadModule
(IModuleDS datasource)
-
Constructor Details
-
ModuleCache
public ModuleCache(Solution solution, IInitializationReport report, IApplicationDS datasource, boolean processEnabled) throws InitializationException - Throws:
InitializationException
-
-
Method Details
-
addModule
Description copied from interface:IModuleVisitor
This method should be invoked for each module that is used by the application.- Specified by:
addModule
in interfaceIModuleVisitor
- Parameters:
datasource
- The data source providing the information needed to initialize the module.- Throws:
InitializationException
- This exception is thrown when the module could not be initialized.
-
getMainModule
Description copied from interface:IModuleCache
This method returns the main module of the application.- Specified by:
getMainModule
in interfaceIModuleCache
- Returns:
- The main module of the application.
-
getModule
Description copied from interface:IModuleCache
This method returns the module definition for the specified ID.- Specified by:
getModule
in interfaceIModuleCache
- Parameters:
moduleId
- The ID of the requested module.- Returns:
- The module definition for the specified ID.
- Throws:
InitializationException
- This exception is thrown when the module could not be loaded.UnknownModuleException
- This exception is thrown when the module is not available.
-
loadModule
- Throws:
InitializationException
-
getModuleNames
Description copied from interface:IModuleCache
This method returns the names of the all modules in the cache.- Specified by:
getModuleNames
in interfaceIModuleCache
- Returns:
- The names of all modules.
-