パンくず
書籍 Refactoring to Patterns
Creation
概要
Creation、生成に関するリファクタリング
生成に関するリファクタリング
Refactoring | リファクタリング |
---|---|
Replace Constructors with Creation Method | Creation Methodによるコンストラクタの置換 |
Move Creation Knowledge to Factory | 生成の情報をファクトリーへ移動 |
Encapsulate Classes with Factory | クラスの情報をファクトリーへカプセル化 |
Introduce Polymorphic Creation with Factory Method | ファクトリメソッドによる生成でポリモルフィズムを導入 |
Encapsulate Composite with Builder | ビルダーによる集約のカプセル化 |
Inline Singleton | シングルトンのインライン化 |