The module service also announces several events or interception points as you saw from the life cycle diagrams. Below are the events announced:
Fired before a module is about to be activated.
Data:
moduleLocation
- The location of the loaded module
moduleName
- The name of the module
Fired after a module has been successfully activated
Data:
moduleLocation
- The location of the loaded module
moduleName
- The name of the module
moduleConfig
- The module configuration structure
Fired before a module is about to be unloaded
Data:
moduleName
- The name of the module
Fired after a module has been unloaded
Data:
moduleName
- The name of the module