One small step for a man
One Giant leap for the mankind

There is no wealth like Knowledge
                            No Poverty like Ignorance
Journal of Emerging Trends in Computing and Information Sciences Logo

Journal of Emerging Trends in Computing and Information Sciences >> Call for Papers Vol. 8 No. 3, March 2017

Journal of Emerging Trends in Computing and Information Sciences

An Approach to Reducing Complexity in Abstract Factory Design Pattern

Full Text Pdf Pdf
Author Aleksandar Bulajic, Slobodan Jovanovic
ISSN 2079-8407
On Pages 1335-1343
Volume No. 3
Issue No. 9
Issue Date October 01, 2012
Publishing Date October 01, 2012
Keywords Design-Patterns, Abstract Factory, Patterns Best Practice, Creational Patterns, Patterns by Example


Abstract

It is well known that the Abstract Factory design pattern defines a new Abstract Product Factory for each family of products. Adding a new family of products affects any existing class that depends on it, and requires complex changes in the existing Abstract Factory code, as well as changes in the application or client code. Many papers discuss this issue and the issues related to increasing the number of classes. Often these papers recommend the Prototype pattern, or another solution is to add a parameter to operations that creates objects. This paper offers another approach to this issue—it employs a specially designed database, and in this way it reduces the number of Abstract Product factories and Concrete Product classes to one per Abstract Factory family. Also, adding a new product is comprehensible for the existing code, and in cases when it is necessary to add a new product, all changes are implemented without any actions related to alterations or updates of existing code.  

Back

Seperator
    Journal of Computing | Call for Papers (CFP) | Journal Blog | Journal of Systems and Software | ARPN Journal of Science and Technology | International Journal of Health and Medical Sciences | International Journal of Economics, Finance and Management     
Copyrights
© 2015 Journal of Computing