mixinafIoc::InjectionCtx

afIoc::InjectionCtx

@Js

Passed to DependencyProviders to give contextual injection information.

field

Source

abstract Field? field()

The field to be injected. Only available for field injection.

func

Source

abstract Func? func()

The func to be injected. Only available for func injection.

funcArgIndex

Source

Int? funcArgIndex()

Returns the index into funcArgs should it be applicable, null otherwise. This takes into account any service configuration injection (if applicable).

funcArgs

Source

abstract Obj?[]? funcArgs()

Provided arguments to call the func with.

funcParam

Source

abstract Param? funcParam()

The func Param to be injected. Only available for func injection.

funcParamIndex

Source

abstract Int? funcParamIndex()

The index of the func Param to be injected. Only available for func injection.

funcTakesServiceConfig

Source

virtual Bool funcTakesServiceConfig()

Returns true if the first parameter of the func should be a Map or List service configuration.

isFieldInjection

Source

Bool isFieldInjection()

Returns true if performing field injection.

isFuncArgItBlock

Source

Bool isFuncArgItBlock()

Returns true if injecting a ctor it-block

isFuncArgProvided

Source

Bool isFuncArgProvided()

Returns true if an argument has been provided for this func parameter injection.

isFuncArgReserved

Source

Bool isFuncArgReserved()

Returns true if 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

Source

Bool isFuncArgServiceConfig()

Returns true if injecting a Map or List service configuration.

isFuncInjection

Source

Bool isFuncInjection()

Returns true if performing func (or method) injection.

Convenience for func != null.

isMethodInjection

Source

Bool isMethodInjection()

Returns true if performing method injection.

Convenience for func != null && func.method != null.

method

Source

Method? method()

The method to be injected. Only available for some func injection.

Convenience for func?.method.

serviceId

Source

abstract Str? serviceId()

The id of the service (if any) that is being created.

targetInstance

Source

abstract Obj? targetInstance()

The object that will receive the injection.

targetType

Source

abstract Type? targetType()

The Type of object that will receive the injection. This is the parent Type that contains the field or method. Is null when resolving parameters for a pure / non-method func.