- 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ù)庫應(yīng)用實戰(zhàn)
- 大數(shù)據(jù)技術(shù)基礎(chǔ)
- Greenplum:從大數(shù)據(jù)戰(zhàn)略到實現(xiàn)
- 大數(shù)據(jù)可視化
- 大數(shù)據(jù)算法
- Oracle高性能自動化運維
- 大數(shù)據(jù)營銷:如何讓營銷更具吸引力
- 企業(yè)級數(shù)據(jù)與AI項目成功之道
- 深入淺出 Hyperscan:高性能正則表達式算法原理與設(shè)計
- 云原生數(shù)據(jù)中臺:架構(gòu)、方法論與實踐
- Instant Autodesk AutoCAD 2014 Customization with .NET
- 大數(shù)據(jù)技術(shù)原理與應(yīng)用:概念、存儲、處理、分析與應(yīng)用
- 從實踐中學(xué)習(xí)sqlmap數(shù)據(jù)庫注入測試
- 云計算寶典:技術(shù)與實踐
- MySQL數(shù)據(jù)庫實用教程