You little misunderstood the article. It was about too many
different metatags across frameworks, also promoting Robotlegs as a
framework that only needs one metatag [Inject]. So to use it
correctly always use [Inject] metatag:
[Inject] public var model:Model;
If you use your first case you always get new Model instance and
then no chance to share the same instance in your context.
Support Staff4 Posted by creynders on 29 Jun, 2011 08:28 AM
Extra note: the example from Joel you're referring to uses
constructor injection, w/o inject metadata tags or the XML config
of the injections. If SS encounters constructor parameters it
automatically injects them with mapped values.