EntityFactory
scalata.application.services.EntityFactory
Generic factory type-class able to build domain entities.
==== Type parameters ====
- F – concrete factory that implements the trait (self-type used for fluent APIs).
- E – entity returned by the factory (e.g.
Enemy,Item). - P – descriptor specifying which concrete subtype to create (enum, string tag, config object …).
Implementations are pure: calling create must not mutate shared state but simply return a fresh instance of E.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Members list
In this article