tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/457-modular-utility-and-signals-injections-dont-work-within-the-module-contexts-commandsRobotlegs: Discussion 2012-07-07T00:03:30Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/126890742012-01-07T16:34:29Z2012-01-07T16:34:29ZModular utility and Signals; injections don't work within the module context's commands<div><p>Hi Mikko, is there any chance you could build a stripped down
example app that exhibits this behaviour? That would make it much
easier to diagnose.</p></div>Shaun Smithtag:robotlegs.tenderapp.com,2009-10-18:Comment/126890742012-01-07T21:24:29Z2012-01-07T21:24:31ZModular utility and Signals; injections don't work within the module context's commands<div><p>OK, here you go!</p>
<p>Clicking "Load MyModule1" crashes right away, because
MyModule1Context is listening for an ApplicationStartedSignal and
executes MyModuleCommand, which tries to inject SomeVO (which is
mapped in MyModule1Context, but still won't work).</p></div>Mikko Karvonentag:robotlegs.tenderapp.com,2009-10-18:Comment/126890742012-01-08T00:59:04Z2012-01-08T00:59:04ZModular utility and Signals; injections don't work within the module context's commands<div><p>Ah, indeed, it looks like the wiring in that utility sets things
up in such a way that the commands are injected by some shared
injector (or something) and not the module's injector. You should
create an issue over on that util's repo:</p>
<p><a href=
"https://github.com/bbeaumont/signals-extensions-ModuleSignalCommandMap/issues">
https://github.com/bbeaumont/signals-extensions-ModuleSignalCommand...</a></p>
<p>btw, nice packaging up of the sample app - was really easy to
work with.</p></div>Shaun Smith