classafIoc::InjectionCtx
sys::Obj afIoc::InjectionCtx
Passed into DependencyProviders to give contextual injection information.
- dependencyType
const Type dependencyTypeThe
Typeto be injected- field
const Field? fieldThe field to be injected. Only available for field injection.
- fieldFacets
const Facet[] fieldFacetsThe facets of the field to be injected. Is never null, but may be empty.
- injectingInto
Obj? injectingIntoThe object that will receive the injection. Only available for field and (non-static) method injection.
- injectingIntoType
const Type? injectingIntoTypeThe
Typethat will receive the injection. Not available duringdependencyByType.- injectionType
const InjectionType injectionTypeThe type of injection.
- log
Logs details via the
OpTracker.- method
const Method? methodThe method to be injected. Only available for method injection.
- methodFacets
const Facet[] methodFacetsThe facets of the method to be injected. Is never null, but may be empty.
- methodParam
const Param? methodParamThe method
Paramto be injected. Only available for method injection.- methodParamIndex
const Int? methodParamIndexThe index of the method
Paramto 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.