tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/681-does-every-module-needs-to-use-modulecontextRobotlegs: Discussion 2013-04-28T10:18:32Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/102966442011-09-29T13:35:42Z2011-09-29T13:35:42ZDoes every module 'needs' to use ModuleContext<div><p>Hi Meg,</p>
<p>yes - your loaded Modules need to use a ModuleContext not a
normal Context, as this provides the extra functionality required
by modules.</p>
<p>In RL2 this won't be necessary, but for RL1, it is.</p>
<p>Stray</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/102966442011-09-29T13:38:50Z2011-09-29T13:38:58ZDoes every module 'needs' to use ModuleContext<div><p>Stray,</p>
<p>Thanks a lot for the prompt reply. I saw few applications which
were using modules but still using Context (and not ModuleContext).
That is why I am confused.</p>
<p>Also, If I start using ModuleContext, do I also have to replace
all eventDispatchers.dispatchEvent calls by moduleDispatchers? Also
how about overriding few methods for injection. Are they required?
What other changes do you think are needed, if they are at top of
your head.</p>
<p>Thanks a lot,<br>
Meg</p></div>Megtag:robotlegs.tenderapp.com,2009-10-18:Comment/102966442011-09-29T13:44:27Z2011-09-29T13:44:30ZDoes every module 'needs' to use ModuleContext<div><p>Also, I am looking at the WidgetModuleContext in the example app
under RL exampled, example uses Context here as opposed to
ModuleContext. Why is that?</p></div>Megtag:robotlegs.tenderapp.com,2009-10-18:Comment/102966442011-09-29T13:46:05Z2011-09-29T13:46:05ZDoes every module 'needs' to use ModuleContext<div><p>Hi Meg,</p>
<p>There are some good examples and tutorials on the web that cover
the basics:</p>
<p><a href=
"http://www.digitaldogbyte.com/2010/08/17/robotlegs-modular-utilities-tutorial/">
http://www.digitaldogbyte.com/2010/08/17/robotlegs-modular-utilitie...</a></p>
<p>and</p>
<p><a href=
"http://joelhooks.com/2010/05/02/modular-robotlegs/">http://joelhooks.com/2010/05/02/modular-robotlegs/</a></p>
<p>would be a good place to start.</p>
<p>Personally I use the moduleMediator class to relay events into
and out of the modules. This means that my code doesn't need to
change for inside / outside a modular environment. I like that
approach, though I know some other people prefer the convenience of
using the moduleDispatcher directly.</p>
<p>Stray</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/102966442011-11-01T17:33:10Z2011-11-01T17:33:10ZDoes every module 'needs' to use ModuleContext<div><p>If you need more help with this, please feel free to re-open
this discussion. Please open new threads for new issues.<br>
Thanks!<br>
Ondina</p></div>Ondina D.F.