Class EntityManager

java.lang.Object
com.smeup.kokos.sdk.entity.EntityManager

public class EntityManager extends Object
Global, singleton entry-point to retrieve EntityRepository instances.

Lifecycle

The EntityManager must be initialized exactly once at application startup via init(EntityManagerConfig) before any other call. After initialization the internal registry is immutable — no further registrations are possible. This design makes the singleton safe to use from any thread without synchronization after startup.

Registration

Repositories are registered through EntityManagerConfig, by calling the register method with a Repository instance: config.register(MyEntity.class, new MyEntityRepository())