O'Reilly logo

Implementing Domain-Driven Design by Vaughn Vernon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Factory Method on Aggregate Root

Throughout the three sample Bounded Contexts there are Factory sites on Aggregate Root Entities, of which Table 11.1 provides a summary.

Table 11.1. Sites of Factory Methods on Aggregates

Image

I discuss the Product Factory Methods under Aggregates (10). For example, its method planBacklogItem() creates a new BacklogItem, which is an Aggregate that is subsequently returned to the client.

To demonstrate the design of Factory Methods, let’s look at the three in the Collaboration Context.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required