组件对象模型(Component Object Model,COM) 是基于Windows 平台的一套组件对象接口标准,由一组构造规范和组件对象库组成。一般的对象是由数据成员和作用在其上的方法组成,而组件对象和一般对象虽有相似性,但又有较大不同。组件对象不使用方法而用接口来描述自身。接口被定义为“在对象上实现的一组语义上相关的功能”,其实质是一组函数指针表,每个指针必须初始化指向某个具体的函数体。一个组件对象实现的接口数量没有限制。
接着具体讲述了组件对象模型中使用的两种设计模式:工厂方法模式和代理模式。
It describes two kinds of design patterns in COM in detail: Factory Method pattern and Proxy pattern, and tells how to realize the former.
讨论了组件对象模型的接口内存结构、基本构成,COM库调用机制以及安全性机制等问题。
The memory structure and basic composition of interface, calling mechanism of com database and security mechanism are described.
CORBA组件作一种分布式组件对象模型,相对于传统的软件系统在软件测试方法上有其特殊的要求。
CORBA, as a distributed component model, has special requirement on the testing method, compared with the traditional software systems.
应用推荐