EncapsulateConstructorsWithFactoryMethods
Last edit July 13, 2001
From
JoshuaKerievsky
's "
RefactoringToPatterns
" paper.
(See that page for link to PDF of paper.)
"Many constructors on a class make it hard to decide which constructor to call during development"
"Encapsulate the constructors with intention-revealing Factory Methods"
This pattern may address some of the issues on the
LimitConstructorArguments
page.
CategoryPattern