Friday, May 4, 2012

Factories


But still the creation logic is kind of separate from the rest of the logic as it’s only needed during creation time and not during the rest of the lifecycle of an object. Thus when creation logic gets complex enough, like calling repositories, you should spinoff this separate concern to another object, a factory object.
 http://programmers.stackexchange.com/questions/70734/ddd-a-rookies-unanswered-questions

No comments:

Post a Comment