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
const static InjectionType ctorInjection := ...
Ctor Injection.
- dependencyByType
const static InjectionType dependencyByType := ...
A direct call to
Registry.dependencyByType()
- fieldInjection
const static InjectionType fieldInjection := ...
Field injection.
- fieldInjectionViaItBlock
const static InjectionType fieldInjectionViaItBlock := ...
Field injection via a ctor it-block.
- fromStr
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
Bool isFieldInjection()
Returns true if a field injection (of any kind) is taking place
- methodInjection
const static InjectionType methodInjection := ...
Calling a method.
- vals
const static InjectionType[] vals := ...
List of InjectionType values indexed by ordinal