Module Loading in a PureMVC Pipe Application
Since the PureMVC Pipes Utility was released I have been trying to find the best and most comfortable way for me to load and unload Modules in the main Shell application. A couple of things pertinent to my method of development: + Looking at the kind of builds that I would utilise the MultiCore framework, most would load multiple single instances of modules. + I prefer to reference as little of the framework or Pipe logic as possible in the main application Shell and defer this to the Application Mediator. + I want the code structured in a manner that adding future modules will take the minimum time possible.
With these points in mind I opted for (a) the IModuleInfo as the handle for the modules and (b) the ModuleManager for loading and unloading of the modules. Heres how: Read on →