Support Staff2 Posted by creynders on 31 May, 2012 08:02 AM
Models are not required to extend Actor, it (the Actor class) is
there for convenience when using events for system messaging.
In general I use signals for view -> mediator and direct
service -> command (or mediator) communication (ie. a command
calls a method on a service and receives a signal it can listen to
for completion notification) and rely on events for all other
system messaging, but everyones tastes and needs are different, so
you'll have to experiment a little to find out what works best for
There's also the SignalMap / SignalMediator classes, which will give you automatic unmapping when your mediator is destroyed - otherwise you need to override onRemove and make sure you're removing those handlers so they don't linger around and cause memory leaks and double-handler bugs.