That's exactly what I'm doing, there's a createNullInstance
(type:Class, parameterCount:uint) in InjectorImpl. Not only is it
hacky as hell but what if you create an instance of something that
ends up firing off other processes? Ideally one would be able to
specify constructor parameters in more detail, while it removes a lot
of flexibility it opens up for better configurability.
[Inject(apple="model::Apple", orange="model::BloodOrange,live",
pear="model::Pear")]
public class MyClass {
public function MyClass[apple:IFruit, orange:ICitrusFruit,
pear:Pear):void
...
}
While it might seem to double up the sugar it does give you a chance
to clearly specify what you want injected.