loading table of contents...

5.5.2. Inversion of Control

The approach above passes the state configuration between components that are statically assigned to one another. Instead, the state of a container could be passed dynamically in the runtime to its child components. This is exactly what the Studio component IoC does: It uses annotations in the ActionScript classes to declare which components provide or consume a component state (in the following context) and leverages the Ext JS component hierarchy in the runtime to establish the dependency between the context provider and context consumer.