Module Lifecycle
However, before we start reviewing the module service methods let's review how modules get loaded in a ColdBox application. Below is a simple bullet point of what happens in your application when it starts up:
ColdBox main application and configuration loads
ColdBox Cache, Logging and WireBox are created
Module Service calls on
registerAllModules()
to read all the modules in the modules locations (with include/excludes) and start registering their configurations one by one. If the module had parent settings, interception points, datasoures or webservices, these are registered here.All main application interceptors are loaded and configured
ColdBox is marked as initialized
Module service calls on
activateAllModules()
so it begins activating only the registered modules one by one. This registers the module's SES URL Mappings, model objects, etcafterConfigurationLoad
interceptors are fired
Last updated