- Hands-On Design Patterns with Java
- Dr. Edward Lavieri
- 109字
- 2021-06-24 14:58:04
Exploring the command pattern
The purpose of the command design pattern is to send requests as objects. This pattern, also referred to as the transaction or action design pattern, permits the sending of requests without knowing any details about the receiver or even about what is being requested. This might sound counter-intuitive, and requires that it be looked at from a systems perspective and not a human-managed operation. With the command pattern, we encapsulate requests as objects and transmit them to a receiver.
We will look at an example use case, the UML class diagram, and the source code necessary to implement the command design pattern for this scenario.
推薦閱讀
- 計算機綜合設計實驗指導
- 數(shù)據(jù)可視化:從小白到數(shù)據(jù)工程師的成長之路
- 云計算服務保障體系
- 業(yè)務數(shù)據(jù)分析:五招破解業(yè)務難題
- 揭秘云計算與大數(shù)據(jù)
- 軟件成本度量國家標準實施指南:理論、方法與實踐
- 淘寶、天貓電商數(shù)據(jù)分析與挖掘?qū)崙?zhàn)(第2版)
- 區(qū)塊鏈技術應用與實踐案例
- SQL Server深入詳解
- 菜鳥學SPSS數(shù)據(jù)分析
- openGauss數(shù)據(jù)庫核心技術
- 商業(yè)智能工具應用與數(shù)據(jù)可視化
- 數(shù)據(jù)庫原理與設計實驗教程(MySQL版)
- Node.js High Performance
- 數(shù)據(jù)挖掘算法實踐與案例詳解