issues with swiftsuspenders and flash compiled project

eco_bach's Avatar

eco_bach

09 Apr, 2010 07:16 PM

Hi
Have a problem getting swfsuspenders to work properly in a demo RobotLegs project. All my view mediators extend BaseMediator

My config XML looks like the following

protected static const XML_CONFIG:XML =

     <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>;

Error: Injector is missing a rule to handle injection into target [object ApplicationMediator].

Read the documentation on Swfsuspenders but still stymied.

Are there issues/bugs in using swfsuspenders when using inheritance for mediators??
ie
http://robotlegs.lighthouseapp.com/projects/39592/tickets/10-via-te...

Is there a comprehensive tutorial on SwfSuspenders for devs new to the world of IOC?

  1. Support Staff 1 Posted by Shaun Smith on 10 Apr, 2010 11:27 AM

    Shaun Smith's Avatar

    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.

    If this is not the case, could you supply some more details

    1. The target dependency in the SwiftSuspenders error message.
    2. The setup-code where you supply the XML.
    3. The mapping of the ApplicationMediator.
  2. Stray closed this discussion on 13 Feb, 2011 07:09 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac