我的理解,三个核心的XPCOM组件管理接口:
nsIComponentManager--创建对象并得到对象的实现细节
nsIServiceManager--提供对唯一对象的访问和发现唯一的状态
nsIComponentRegistrar--注册和反注册factories和components,处理自动注册及发现并列举以注册的组件
xpcom/glue/nsCOMPtr.h
xpcom/glue/nsCOMPtr.cpp
template class nsCOMPtr //神奇的智能指针
阅读(1510) | 评论(2) | 转发(0) |