官术网_书友最值得收藏!

Summary

After reading this chapter, the reader should now have a good idea about the overview of GOF creational design patterns and its best practices. I highlighted the problems that come from not using design patterns in enterprise application development, and how Spring solves these problems by using the creational design patterns and good practices in the application. In this chapter, I have mentioned only one of the Creational Design pattern categories out of the three main categories of the GOF Design Patterns. The Creational design pattern is used for the creation of object instances, and also applies constraints at the creation time in the enterprise application in a specific manner using the Factory, Abstract Factory, Builder, Prototype, and Singleton patterns. In the next chapter, we will look at the other categories of the GOF Design Patterns-the structural design pattern and the behavioral design pattern. The structural design pattern is used to design the structure of an enterprise application by dealing with the composition of classes or objects so that it reduces the application's complexity and improves the reusability and performance of the application. The Adapter Pattern, Bridge Pattern, Composite Pattern, Decorator Pattern, Facade Pattern, and Flyweight Pattern come under this category of the pattern. The Behavioral design pattern characterizes the ways in which classes or objects interact and distribute responsibility. The patterns that come under this category are specifically concerned with communication between objects. Let's move to complete the remaining GOF patterns in the next chapter.

主站蜘蛛池模板: 巴马| 卢氏县| 文昌市| 辽宁省| 永清县| 夏邑县| 平武县| 荆门市| 安多县| 靖安县| 山丹县| 隆化县| 邹城市| 阳春市| 遂溪县| 南郑县| 新巴尔虎右旗| 外汇| 长治县| 丹寨县| 汪清县| 万山特区| 庆阳市| 永丰县| 宿州市| 大宁县| 临沧市| 亚东县| 营口市| 都江堰市| 舟山市| 南召县| 余江县| 芒康县| 南京市| 富平县| 隆林| 桐乡市| 鄂托克前旗| 南充市| 太仆寺旗|