| 
             
                | 
          
            Annex B: Design PatternsB6.Factory MethodDescriptionWhen an algorithm needs to create an object whose its concrete class is variable according to the context, this owner proposes the delegation with a subclass of the instanciation of this object. Structure and Components
               Structure and Components of the Factory Method design pattern
 Collaborations
 Strengths and Weaknesses
             
             Use in CBR*ToolsThis pattern occurs in various algorithms of CBR*Tools and in particular in the internal protocols of the index for the creation of the objects holding the result of a search (of IndexResult class) so as to instantiate the adequate objects. Last modified: Fri Sep 28 13:51:57 MEST 2001  |