Injector is missing to handle injection into property "injector"

LordCorax's Avatar

LordCorax

18 Jul, 2013 12:18 PM

Hey guys,

at first let me thank you for that great framework. I really like RobotLegs 2.
Some weeks ago I developed a RL2-Project by using RLv2.0.0b5. Everything worked fine.
But when I switched from beta to productive I got an error-message:

[Fault] exception, information=Error: Injector is missing a mapping to handle injection into property "injector" of object "[object ShellConfig]" with type "de.ifs.shell::ShellConfig". Target dependency: "org.swiftsuspenders::Injector|"

Hope you can help me.

  1. Support Staff 1 Posted by Ondina D.F. on 18 Jul, 2013 01:21 PM

    Ondina D.F.'s Avatar

    Hi,

    From the error you're getting I assume that you tried to inject the injector like this:

    [Inject]
    public var injector:Injector;
    

    You need to inject the IInjector !!!

    [Inject]
    public var injector:IInjector;
    

    Let me know if this solves your problem.

    Ondina

  2. 2 Posted by LordCorax on 18 Jul, 2013 01:30 PM

    LordCorax's Avatar

    Yeah that solved my problem completly.
    I didn't recognized, that I'm not using the interface.
    Thanks a lot

  3. Support Staff 3 Posted by Ondina D.F. on 18 Jul, 2013 01:30 PM

    Ondina D.F.'s Avatar

    No problem:)

  4. Ondina D.F. closed this discussion on 18 Jul, 2013 01:30 PM.

  5. creynders re-opened this discussion on 18 Jul, 2013 03:24 PM

  6. Support Staff 4 Posted by creynders on 18 Jul, 2013 03:24 PM

    creynders's Avatar

    It's our fault really. You can't believe - no seriously, it's unbelievable
    - what an amount of discussion went into the "should we provide an
    iinjector interface or not." It somehow got sort of settled at the final
    minute that we should.

  7. Ondina D.F. closed this discussion on 26 Jul, 2013 10:57 AM.

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