-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Dawn is a lightweight framework for ActionScript inspired by Google Guice. In addition to Dependency Injection, it provides type safe notifications and helps you to build apps which are loosely coupled, easily unit tested, and less error-prone.
If you’ve become frustrated with verbose and fragile frameworks, give Dawn a chance and we promise you will have at least 30% more fun!
There’s really nothing to it, promise. While we’re promising, we will say that Dependency Injection (DI) makes it easier to build and test your apps. DI simply means instead of littering your classes with new:
var bicycle:Bicycle = new Bicycle();
You let Dawn do it for you:
[Inject] public var bicycle:Bicycle;
Metadata (like the [Inject]
above) is at the heart of the DI and Notification system in Dawn. Nothing tricky here: Adobe provide many metadata tags for the language, and Google uses the same approach for Guice (though in the Java world they call them annotations).