tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/78-issues-with-swiftsuspenders-and-flash-compiled-projectRobotlegs: Discussion 2013-04-28T10:02:18Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/14133852010-04-09T19:16:32Z2010-04-09T19:16:35Zissues with swiftsuspenders and flash compiled project<div><p>Hi<br>
Have a problem getting swfsuspenders to work properly in a demo
RobotLegs project. All my view mediators extend BaseMediator</p>
<p>My config XML looks like the following</p>
<p>protected static const XML_CONFIG:XML =<br></p>
<pre>
<code> <types>
<type name='app.model::IDataService'>
<field name='model'/>
</type>
<type name='app.view::BaseMediator'>
<field name='view'/>
<field name='siteModel'/>
</type>
<type name='app.controller::StartupCommand'>
<field name='dataService'/>
</type>
</types>;</code>
</pre>
<p>Error: Injector is missing a rule to handle injection into
target [object ApplicationMediator].</p>
<p>Read the documentation on Swfsuspenders but still stymied.</p>
<p>Are there issues/bugs in using swfsuspenders when using
inheritance for mediators??<br>
ie<br>
<a href=
"http://robotlegs.lighthouseapp.com/projects/39592/tickets/10-via-tender-multiple-views-controlled-by-one-mediator">
http://robotlegs.lighthouseapp.com/projects/39592/tickets/10-via-te...</a></p>
<p>Is there a comprehensive tutorial on SwfSuspenders for devs new
to the world of IOC?<br></p></div>eco_bachtag:robotlegs.tenderapp.com,2009-10-18:Comment/14133852010-04-10T11:27:15Z2010-04-10T11:27:15Zissues with swiftsuspenders and flash compiled project<div><p>Does your base mediator specify a view for injection? If so,
there will be a problem trying to satisfy both the injection of
that view and the view specified by your derived classes. In this
case, you should leave the abstract view out, and only specify
views in your derived classes.</p>
<p>If this is not the case, could you supply some more details</p>
<ol>
<li>The target dependency in the SwiftSuspenders error
message.<br></li>
<li>The setup-code where you supply the XML.<br></li>
<li>The mapping of the ApplicationMediator.</li>
</ol></div>Shaun Smith