MemoryRepositoryRegistration
interface in package klyn.data.memory

    public interface MemoryRepositoryRegistration:

MemoryRepositoryRegistration

Type-erased registration boundary for heterogeneous memory repositories.

Concrete repositories retain their generic entity and identity types. This interface only lets one immutable `MemoryConfiguration` contain several repositories without weakening their public typed API.

    registration as MemoryRepositoryRegistration = MemoryRepository<User, Int>(users)
    assert registration.entityType == type(User)

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | entityType `entityType as Type` | Entity type exposed by the registered repository.
public readonly property | identityType `identityType as Type` | Exact effective identity type exposed by the registered repository.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | repositoryObject `repositoryObject() as Object` | Returns the concrete repository while crossing the heterogeneous registry boundary.