PrepareKeyFactory

Factory interface for creating PrepareKey instances. Implementations of this interface provide the mechanism to create key preparation services for different types of values and named contexts.

PrepareKeyFactory is typically used in dependency injection frameworks to provide PrepareKey instances to components that need uniqueness guarantees.

Functions

Link copied to clipboard
abstract fun <V : Any> create(name: String, valueClass: Class<V>): PrepareKey<V>

Creates a PrepareKey instance for the specified name and value type. The created PrepareKey will handle preparation operations for keys with values of type V.