const mixinafIoc::DependencyProvider

afIoc::DependencyProvider

Extend the capabilities of IoC by providing your own dependency resolution.

See DependencyProviderSource

@since 1.1

canProvide

Source

abstract Bool canProvide(ProviderCtx ctx, Type dependencyType)

Return true if the provider can provide. (!)

provide

Source

abstract Obj? provide(ProviderCtx ctx, Type dependencyType)

Return the dependency to be injected