How to inject view interface in mediator

manitas0302's Avatar

manitas0302

11 Sep, 2013 11:46 AM

Hi !

I want to put my mediators in an home-made as3 library.
As I inject the corresponding view in my mediator, I want to inject my view interface that my real view will implement.

I have just tried and I have the following error message :
 Injector is missing a rule to handle injection into property

So is it possible ? with RL2 maybe ?

Thanks in advance for your help.

  1. Support Staff 1 Posted by Ondina D.F. on 11 Sep, 2013 01:12 PM

    Ondina D.F.'s Avatar

    Hello,

    For robotlegs 1 there is the ViewInterfaceMediatorMap utility that you could use for mapping views as interfaces:
    https://github.com/piercer/robotlegs-extensions-ViewInterfaceMediat...

    But, I'd (strongly) recommend using robotlegs 2. All you have to do is this:

    mediatorMap.map(ISomeView).toMediator(SomeMediator);

    hth

    Ondina

  2. 2 Posted by manitas0302 on 11 Sep, 2013 05:19 PM

    manitas0302's Avatar

    Ok thanks a lot for your advise, I will migrate to RL2.

  3. manitas0302 closed this discussion on 11 Sep, 2013 05:20 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