Factory

interface Factory<E : Entity<*>>

Factory interface for creating domain entities.

Used to encapsulate complex creation logic and ensure entities are created in valid states.

Type Parameters

E

the type of entity being created (must extend Entity).