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

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.

主站蜘蛛池模板: 始兴县| 铁岭市| 沁水县| 赤城县| 泰顺县| 普安县| 印江| 濉溪县| 曲阜市| 衡水市| 盖州市| 桦南县| 鄂温| 阿拉善盟| 根河市| 巴林右旗| 宝清县| 苏尼特左旗| 通许县| 呼图壁县| 华亭县| 柏乡县| 洱源县| 衡东县| 蚌埠市| 麻江县| 岳阳县| 财经| 静乐县| 景泰县| 西华县| 霍山县| 敦煌市| 铁力市| 翁源县| 洛隆县| 太和县| 鹤壁市| 威远县| 紫云| 南开区|