ProviderRegistryImplication

Represents an implication relationship that can create registries with implied keys.

This interface provides methods to create either a Registry or a ProviderRegistry that includes both the original key and all its implied keys.

Type Parameters

T

The type of the source value from which implications are derived.

Functions

Link copied to clipboard

DSL function to associate all keys from this implication with a provider in the context provider registry.

context(registry: MutableRegistry)
infix fun <T> ProviderRegistryImplication<T>.correspondsTo(value: T)

DSL function to associate all keys from this implication with a value in the context registry.

Link copied to clipboard
abstract fun substitute(value: T): Registry

Creates a Registry with the implied keys, using a concrete value.

Creates a ProviderRegistry with the implied keys, using a provider.