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