Encapsulate Constructors With Factory Methods

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


EditText of this page (last edited July 13, 2001) or FindPage with title or text search