Dependency Injection

Constructor, method, and field injection is provided. Unfortunately, setter injection is not currently provided due to a FlexBuilder bug (its fixed in Flex4).

Injection is provided to elements decorated with an [Inject] metadata tag.

Injection can only be provided on public methods and fields.

Injection bindings can be provided with an [Injectable] tag at the top of a class or programmatically using Injector#bind().

See the ASDoc on Injector for details on the [Inject] and [Injectable] tags.