const mixinafIoc::DependencyProvider

afIoc::DependencyProvider

Implement to provide your own dependency resolution. Extend the capabilities of IoC!

Contribute it to the DependencyProviderSource service.

@since 1.1

canProvide

Source

abstract Bool canProvide(InjectionCtx injectionCtx)

Return true if the provider can provide. (!)

provide

Source

abstract Obj? provide(InjectionCtx injectionCtx)

Return the dependency to be injected. All details of the injection to be performed is in InjectionCtx.