- Spring 5 Design Patterns
- Dinesh Rajput
- 155字
- 2021-07-08 09:59:30
Creational design patterns
Let's look at the underlying design patterns of this category and how Spring Framework adopts them to provide loose coupling between components and create and manage the lifecycle of Spring components. Creational design patterns are associated with the method of object creation. The creation logic of the object is hidden to the caller of this object.
We are all aware of how to create an object using the new keyword in Java, as follows:
Account account = new Account();
But this way is not suitable for some cases, because it is a hardcoded way of creating an object. It is also not a best practice to create an object because the object might be changed according to the nature of the program. Here, the creational design pattern provides the flexibility to create an object according to the nature of the program.
Now let's look at the different design patterns under this category.
- Access 2010數據庫基礎與應用項目式教程(第3版)
- Symfony2 Essentials
- Nginx實戰:基于Lua語言的配置、開發與架構詳解
- Learning ArcGIS for Desktop
- AIRIOT物聯網平臺開發框架應用與實戰
- 西門子S7-200 SMART PLC編程從入門到實踐
- Building Machine Learning Systems with Python(Second Edition)
- Scala Data Analysis Cookbook
- Visual Basic 6.0程序設計實驗教程
- Python從入門到精通(第3版)
- 監控的藝術:云原生時代的監控框架
- jQuery從入門到精通(微課精編版)
- 安卓工程師教你玩轉Android
- Java 7 Concurrency Cookbook
- 計算機應用基礎(Windows 7+Office 2010)