enum classafIoc::InjectionKind

sys::Obj
  sys::Enum
    afIoc::InjectionKind

@Serializable { simple=true }

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

ctorInjection

Source

const static InjectionKind ctorInjection := ...

Ctor Injection.

dependencyByType

Source

const static InjectionKind dependencyByType := ...

A direct call to Registry.dependencyByType()

fieldInjection

Source

const static InjectionKind fieldInjection := ...

Field injection.

fieldInjectionViaItBlock

Source

const static InjectionKind fieldInjectionViaItBlock := ...

Field injection via a ctor it-block.

fromStr

Source

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

Return the InjectionKind 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 InjectionKind methodInjection := ...

Calling a method.

vals

Source

const static InjectionKind[] vals := ...

List of InjectionKind values indexed by ordinal