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

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.

主站蜘蛛池模板: 兰考县| 鹤壁市| 响水县| 南华县| 尉犁县| 房产| 高碑店市| 嘉善县| 长治县| 禄丰县| 黑龙江省| 湘西| 喜德县| 林甸县| 邯郸县| 黄陵县| 巩义市| 体育| 莱芜市| 南和县| 龙门县| 原平市| 香格里拉县| 巩义市| 同江市| 湖北省| 弥渡县| 尼勒克县| 黑龙江省| 乌鲁木齐市| 泾源县| 皋兰县| 松桃| 九龙城区| 托克托县| 多伦县| 油尖旺区| 富川| 镇康县| 新巴尔虎右旗| 济阳县|