摘要
该文首先介绍了设计模式的思想,然后介绍微软的COM(组件对象模型)的基本原理;接着具体讲述了组件对象模型中使用的两种设计模式:工厂方法模式和代理模式。其中工厂方法模式给出了具体的实现方法,由于代理模式的代码比较复杂,仅给出了基本思想和COM中对应的设计方法。最后介绍了COM中的一些其他的设计模式。
This paper first introduces what design pattern is, then gives a brief introduction to Component Object Model. It describes two kinds of design patterns in COM in detail: Factory Method Pattern and Proxy Pattern, and tells how to realize the former. For the realization is too complicated, the later just gives the design method. At last, it introduces some other design patterns.
出处
《计算机仿真》
CSCD
2004年第5期184-185,共2页
Computer Simulation
关键词
组件对象模型
设计模式
工厂方法模式
代理模式
迭代子模式
Component object model
Design pattern
Factory method pattern
Proxy pattern
Iterator pattern