Context: |
Creating an object by fixed criterion. Possibly reconfiguring it later. |
||||||||||
Challenge: |
to create the object without specifying its type. |
||||||||||
Skill: |
|||||||||||
Participants: |
|
||||||||||
Signature: |
Factory Method (typically Singleton) creates Products for Client. Each Concrete Factory Method is built to produce the respective Concrete Product. In the extreme case, Concrete Factory Method is parameterized over Concrete Product. |
||||||||||
Used patterns and idioms: |
Singleton. |
||||||||||
Used by: |
Dynamic Pluggable Factory. |
||||||||||
Scope: |
Languages that that lack the class object. (Elsewhere, where objects are created by default, a global reference to the respective class object will suffice.) |