mixinafIoc::InjectionCtx
afIoc::InjectionCtx
@Js
Passed to DependencyProviders to give contextual injection information.
- field
abstract Field? field()The field to be injected. Only available for field injection.
- func
abstract Func? func()The func to be injected. Only available for func injection.
- funcArgIndex
Int? funcArgIndex()Returns the index into
funcArgsshould it be applicable,nullotherwise. This takes into account any service configuration injection (if applicable).- funcArgs
abstract Obj?[]? funcArgs()Provided arguments to call the func with.
- funcParam
abstract Param? funcParam()The func
Paramto be injected. Only available for func injection.- funcParamIndex
abstract Int? funcParamIndex()The index of the func
Paramto be injected. Only available for func injection.- funcTakesServiceConfig
virtual Bool funcTakesServiceConfig()Returns
trueif the first parameter of the func should be aMaporListservice configuration.- isFieldInjection
Bool isFieldInjection()Returns
trueif performing field injection.- isFuncArgItBlock
Bool isFuncArgItBlock()Returns
trueif injecting a ctor it-block- isFuncArgProvided
Bool isFuncArgProvided()Returns
trueif an argument has been provided for this func parameter injection.- isFuncArgReserved
Bool isFuncArgReserved()Returns
trueif the func argument has been reserved by system providers; namely if the parameter is:- service configuration
- a provider func argument
- a ctor it-block
- isFuncArgServiceConfig
Bool isFuncArgServiceConfig()Returns
trueif injecting aMaporListservice configuration.- isFuncInjection
Bool isFuncInjection()Returns
trueif performing func (or method) injection.Convenience for
func != null.- isMethodInjection
Bool isMethodInjection()Returns
trueif performing method injection.Convenience for
func != null && func.method != null.- method
Method? method()The method to be injected. Only available for some func injection.
Convenience for
func?.method.- serviceId
abstract Str? serviceId()The id of the service (if any) that is being created.
- targetInstance
abstract Obj? targetInstance()The object that will receive the injection.
- targetType
abstract Type? targetType()The
Typeof object that will receive the injection. This is the parentTypethat contains the field or method. Isnullwhen resolving parameters for a pure / non-method func.