tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/277-how-to-use-viewmapmappackageRobotlegs: Discussion 2013-04-28T09:55:58Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/59699482011-03-24T12:05:39Z2011-03-24T12:05:39ZHow to use "viewMap.mapPackage"<div><p>Could you ask a more specific question?</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/59699482011-05-02T14:50:01Z2011-05-02T14:50:01ZHow to use "viewMap.mapPackage"<div><p>Just incase anyone is coming across this - the viewMap is an
alternative to the mediatorMap (you should only use one or the
other), which facilitates injection into views.</p>
<pre>
<code>viewMap.mapPackage('com.myapp.view.screens');</code>
</pre>
<p>Would map all the classes within this package for injection. The
viewMap then monitors things landing on the stage and when
something from that package arrives it populates the injections
that are required.</p>
<p>So - mapPackage is just a short hand for mapping all the views
in a package rather than mapping them individually.</p>
<p>Stray</p></div>Stray