SignalMediator for Robotlegs 2

timwjohn's Avatar


30 Nov, 2013 01:46 PM

Hey guys,

Finally switching to Robotlegs 2. I used Stray's SignalMediator a lot for easy attachment and cleanup of signal listeners on RL1, but there doesn't seem to be an equivalent in RL2.

The implementation is pretty simple - it just reduces the code footprint a little. I guess it's easy enough to just manage all of this manually now?


  1. Support Staff 1 Posted by Ondina D.F. on 01 Dec, 2013 10:27 AM

    Ondina D.F.'s Avatar

    Hey Tim,

    It seems to me that all you'd have to do to make SignalMediator work with rl2 was extending an rl2 Mediator and replacing

    preRemove() with destroy()

    Try it out and let us know if it works.


  2. 2 Posted by timwjohn on 02 Dec, 2013 10:42 AM

    timwjohn's Avatar

    Yeah, it looks pretty straightforward. Next project I get with a little breathing space I will build this extension!

    (I'd probably override postDestroy, as that's where a mediator's event map is wrapped up)

  3. Support Staff 3 Posted by Ondina D.F. on 02 Dec, 2013 04:21 PM

    Ondina D.F.'s Avatar

    Yep, postDestroy() it is :)

  4. Ondina D.F. closed this discussion on 02 Dec, 2013 04:21 PM.

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

Keyboard shortcuts


? 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