var instance:MyCoolInstance = injector.instantiateUnmapped(MyCoolInstance);
...
class MyCoolInstance
{
@PostConstruct
public function init():Void
{
throw new Error("error);
}
}
UPD:
What is the reason of bottom catch of instantiateUnmapped in Injector?
try
{
if ( instance.acceptInjector != null )
{
this._applyInjection( instance, type );
}
}
catch ( e : MissingMappingException )
{
throw( e );
}
catch ( e : Dynamic )
{
//Do nothing
}
Simple example
UPD: What is the reason of bottom catch of
instantiateUnmapped
in Injector?