MemoryConfiguration
classin packageklyn.data.memory
public final class MemoryConfiguration implements ProviderConfiguration
MemoryConfiguration
All Implemented Interfaces: ProviderConfiguration

Immutable provider configuration for one logical in-memory environment.

Each registered repository remains a statically typed entity root. The configuration only copies repository references; it never copies their backing collections and therefore preserves memory-provider observation semantics.

configuration = MemoryConfiguration([
    MemoryRepository<User, Int>(users),
    MemoryRepository<Order, Long>(orders)
])
try factory = EntityManagerFactory(
    configuration,
    entities=[User, Order]
):
    try manager = factory.createEntityManager():
        userRepository = manager.repository<User, Int>()
Properties
Modifier and Type Member Description
public readonly property providerName
providerName as String
Stable provider family name.
public readonly property repositoryTypes
repositoryTypes as IList<Type>
Immutable entity types represented by the configured repositories.
Constructors
Modifier and Type Member Description
public MemoryConfiguration Creates an immutable registry of typed in-memory repositories.
Methods
Modifier and Type Member Description
public resolve
resolve<T, TId>() as Repository<T, TId>
Resolves one repository with its exact entity and identity types.