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

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.

主站蜘蛛池模板: 湘阴县| 辽阳县| 阜宁县| 抚远县| 永州市| 南阳市| 漾濞| 长汀县| 大埔县| 南涧| 招远市| 安吉县| 桦南县| 扎兰屯市| 泰州市| 永定县| 三明市| 杭锦后旗| 静安区| 乌拉特后旗| 屯门区| 道真| 教育| 普洱| 东源县| 永嘉县| 平安县| 柳州市| 涡阳县| 崇礼县| 双柏县| 邳州市| 马尔康县| 鹰潭市| 黄龙县| 布拖县| 通化市| 油尖旺区| 云安县| 大宁县| 银川市|