- Spring 5 Design Patterns
- Dinesh Rajput
- 194字
- 2021-07-08 09:59:37
Composite design pattern
-GoF Design Patterns
In software engineering, the composite pattern comes under the structural design pattern. According to this pattern, a group of objects of the same type are treated as a single object by the client. The idea behind the Composite design pattern is to compose a set of objects into a tree structure to represent a module of a larger structural application. And this structure for clients is a single unit or instance uniformly.
The motivation behind the Composite design pattern is that objects in the system are grouped into the tree structure, and a tree structure is a combination of the node-leaf and branches. In the tree structure, nodes have a number of leaves and other nodes. Leaf doesn't have anything, which means there is no child of leaf in the tree. Leaf is treated as the end point of tree-structured data.
Let's look at the following figure, which represents data in the tree structure in the form of node and leaf:

- ASP.NET Web API:Build RESTful web applications and services on the .NET framework
- Django+Vue.js商城項目實戰
- Facebook Application Development with Graph API Cookbook
- 案例式C語言程序設計
- C程序設計簡明教程(第二版)
- Vue.js前端開發基礎與項目實戰
- Apache Kafka Quick Start Guide
- Swift Playgrounds少兒趣編程
- Create React App 2 Quick Start Guide
- Fast Data Processing with Spark(Second Edition)
- MATLAB GUI純代碼編寫從入門到實戰
- Getting Started with Nano Server
- Python GUI Programming Cookbook(Second Edition)
- WordPress Search Engine Optimization(Second Edition)
- Spring Web Services 2 Cookbook