yeah, there are multiple ways to do it: you could also use a startupCommand (in which you would inject the moduleCommandMap) or if you really want to do this in the context itself, just override the setModuleDispatcher() method to store -in the context- a reference of the ModuleCommandMap instance.
But i like to keep the module as a "normal" Robotlegs MVCS (kind of module agnostic) with the all the module-wiring stuff done in the moduleMediator.
yeah, there are multiple ways to do it: you could also use a startupCommand (in which you would inject the moduleCommandMap) or if you really want to do this in the context itself, just override the setModuleDispatcher() method to store -in the context- a reference of the ModuleCommandMap instance.
But i like to keep the module as a "normal" Robotlegs MVCS (kind of module agnostic) with the all the module-wiring stuff done in the moduleMediator.