classafIoc::InjectionCtx
sys::Obj afIoc::InjectionCtx
Passed into DependencyProviders to give contextual injection information.
- dependencyType
Type dependencyType { internal set }
The
Type
to be injected- field
const Field? field
The field to be injected. Only available for field injection.
- fieldFacets
const Facet[] fieldFacets
The facets of the field to be injected. Is never null, but may be empty.
- injectingInto
Obj? injectingInto
The object that will receive the injection. Only available for field and (non-static) method injection.
- injectingIntoType
const Type? injectingIntoType
The
Type
that will receive the injection. Not available duringdependencyByType
.- injectionKind
const InjectionKind injectionKind
The type of injection.
- log
Logs details via the
OpTracker
. The message logged at IoC debug level.- method
const Method? method
The method to be injected. Only available for method injection.
- methodFacets
const Facet[] methodFacets
The facets of the method to be injected. Is never null, but may be empty.
- methodParam
Param? methodParam { internal set }
The method
Param
to be injected. Only available for method injection.- methodParamIndex
Int? methodParamIndex { internal set }
The index of the method
Param
to be injected. Only available for method injection.- track
Obj? track(Str description, |->Obj? operation)
Adds an nested operation description to the
OpTracker
. This provides contextual information in the event of an Err.