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):
try manager = factory.createEntityManager():
userRepository = manager.repository<User, Int>()
Properties
Modifier and Type Member Description
public readonly property mappedTypes
mappedTypes as IList<Type>:
Immutable entity types represented by the configured repositories.
public readonly property providerName
providerName as String:
Stable provider family name.
Inherited Properties
propertyInherited Properties from ProviderConfiguration: mappedTypes, providerName
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.