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

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.

主站蜘蛛池模板: 上饶县| 铜陵市| 石首市| 重庆市| 增城市| 吴忠市| 罗定市| 平利县| 贺州市| 凤阳县| 新源县| 从化市| 肇庆市| 察隅县| 肃宁县| 鄂州市| 应城市| 德庆县| 宁陵县| 察雅县| 绥芬河市| 定安县| 垫江县| 博罗县| 漳浦县| 资源县| 遂宁市| 新竹市| 麟游县| 南丹县| 渑池县| 墨江| 兴义市| 南宁市| 十堰市| 嘉兴市| 安国市| 南木林县| 西充县| 五寨县| 天全县|