FOTB – RobotLegs

RobotLegs and Signals

Joel Hooks – Robotlegs enthusiast

Pure AS3 framework – 30K in size

provides automatic dependency injection
provides a message bus

The Contenxt singleton class that you have to extend to bring RL to application

need to pass contextView then override startup

Dependency Injection
Framework acts as a butler
use Metadata to show a dependency

[inject]
pub var dependencyInst:DependencyClass;

four rules of injection
mapClass
mapValue
mapSingletn
mapSingletoOf

[PostConstruct] == after injection function

EventBus – mechanism for communication

MediatorMap
CommandMap – mapping events on the event bus

Problem – Event bus is a bit weak – no way to have any idea what events the event dispatcher will fire

Signals – is a new way of looking at the event
mini dispatcher specific to one event only

for use in Robotlegs it is best to extent the signal (can also just create)
send parameters through the constructor

add to signal like addEventListener but only listening for one event – exclusive listening

SignalCommandMap – use instead of EventMap

www.dz015.com – blog for Conrad