lucee.Component coldbox.system.web.services.BaseService coldbox.system.web.services.ModuleService
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- I oversee and manage ColdBox modules
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
cfmappingRegistry
CF Mapping registry Dictionary.
|
true
|
false
|
|
any
|
logger
Logger object.
|
true
|
false
|
|
any
|
mConfigCache
Configuration cache dictionary.
|
true
|
false
|
|
any
|
moduleRegistry
Module registry dictionary.
|
true
|
false
|
Constructor Summary | |
---|---|
init(any controller)
Constructor. |
Method Summary | |
---|---|
any
|
activateAllModules()
Go over all the loaded module configurations and activate them for usage within the{application. |
ModuleService
|
activateModule(any moduleName)
Activate a module. |
private any
|
buildRegistry(array locations)
Build the modules registry. |
private boolean
|
canLoad(any moduleName)
Checks if the module can be loaded or registered. |
array
|
getLoadedModules()
Get a listing of all loaded modules. |
struct
|
getModuleConfigCache()
Return the loaded module's configuration objects. |
struct
|
getModuleRegistry()
Get the discovered module's registry structure. |
boolean
|
isModuleActive(any moduleName)
Check and see if a module has been activated. |
any
|
isModuleRegistered(any moduleName)
Check and see if a module has been registered. |
any
|
loadMappings()
Load all module mappings. |
any
|
loadModuleConfiguration(struct config, any moduleName)
Load the module configuration object and return it. |
ModuleService
|
onConfigurationLoad()
Called by loader service when configuration file loads. |
ModuleService
|
onShutdown()
Called when the application stops. |
ModuleService
|
rebuildModuleRegistry()
Rescan the module locations directories and re-register all located modules, this{method does NOT register or activate any modules, it just reloads the found registry. |
ModuleService
|
registerAllModules()
Register all modules for the application. |
any
|
registerAndActivateModule(any moduleName, [any invocationPath=''])
Register and activate a new module. |
boolean
|
registerModule(any moduleName, [any invocationPath=''], [any parent=''], [boolean force='false'])
Register a module's configuration information and config object. |
ModuleService
|
reload(any moduleName)
Reload a targeted module. |
ModuleService
|
reloadAll()
Reload all modules. |
private any
|
scanModulesDirectory(any dirPath)
Get an array of modules found and add to the registry structure. |
boolean
|
unload(any moduleName)
Unload a module if found from the configuration. |
ModuleService
|
unloadAll()
Unload all registered modules. |
Methods inherited from class coldbox.system.web.services.BaseService |
---|
getController, setController |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
controller
Property Detail |
---|
CF Mapping registry Dictionary
access
- publicrequired
- falsereturntype
- anyserializable
- trueLogger object
access
- publicrequired
- falsereturntype
- anyserializable
- trueConfiguration cache dictionary
access
- publicrequired
- falsereturntype
- anyserializable
- trueModule registry dictionary
access
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
Go over all the loaded module configurations and activate them for usage within the{application
Activate a module
moduleName
- The name of the module to load. It must exist and be valid. Else we ignore it by logging a warningBuild the modules registry
locations
- The array of locations to registerChecks if the module can be loaded or registered
moduleName
- The module to checkGet a listing of all loaded modules
Return the loaded module's configuration objects
Get the discovered module's registry structure
Check and see if a module has been activated
moduleName
- The moduleCheck and see if a module has been registered
moduleName
- The moduleLoad all module mappings
Load the module configuration object and return it
config
- The config structuremoduleName
- The module nameCalled by loader service when configuration file loads
onConfigurationLoad
in class
BaseService
Called when the application stops
onShutdown
in class
BaseService
Rescan the module locations directories and re-register all located modules, this{method does NOT register or activate any modules, it just reloads the found registry
Register all modules for the application. Usually called by framework to load{configuration data.
Register and activate a new module
moduleName
- The name of the module to load.invocationPath
- The module's invocation path to its root from the webroot (the instantiation path,ex:myapp.myCustomModules), if empty we use registry location, if not we are doing a explicit name+path registration. Do not include the module name, you passed that in the first argument rightRegister a module's configuration information and config object
moduleName
- The name of the module to load.invocationPath
- The module's invocation path to its root from the webroot (the instantiation path,ex:myapp.myCustomModules), if empty we use registry locatioif not we are doing a explicit name+path registration. Do not include the module name, you passed that in the first argument rightparent
- The name of the parent moduleforce
- Force a registrationReload a targeted module
moduleName
- The moduleReload all modules
Get an array of modules found and add to the registry structure
dirPath
- The path to scanUnload a module if found from the configuration
moduleName
- The moduleUnload all registered modules