Factories

Factories are a powerful abstraction. They help decouple the client from the details of how to interact with the Domain. The client doesn't need to know how to build complex objects and Aggregates, so you can use Factories to create whole Aggregates, thereby enforcing their invariants.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset