enum classafIoc::InjectionType

sys::Obj
  sys::Enum
    afIoc::InjectionType

@Serializable { simple=true }

Used by InjectionCtx to inform DependencyProviders what type of injection is occurring.

ctorInjection

Source

const static InjectionType ctorInjection := ...

Ctor Injection.

dependencyByType

Source

const static InjectionType dependencyByType := ...

A direct call to Registry.dependencyByType()

fieldInjection

Source

const static InjectionType fieldInjection := ...

Field injection.

fieldInjectionViaItBlock

Source

const static InjectionType fieldInjectionViaItBlock := ...

Field injection via a ctor it-block.

fromStr

Source

static new fromStr(Str name, Bool checked := true)

Return the InjectionType instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.

isFieldInjection

Source

Bool isFieldInjection()

Returns true if a field injection (of any kind) is taking place

methodInjection

Source

const static InjectionType methodInjection := ...

Calling a method.

vals

Source

const static InjectionType[] vals := ...

List of InjectionType values indexed by ordinal