首页> 外国专利> Method and system for instantiating components conforming to the 'COM' specification in custom contexts

Method and system for instantiating components conforming to the 'COM' specification in custom contexts

机译:在定制上下文中实例化符合“ COM”规范的组件的方法和系统

摘要

A method and system for instantiating COM components in custom contexts are proposed. The solution of the invention is based on an auxiliary component, acting as a factory (215). Whenever a client (205) needs to instantiate a new target component in a desired custom context, it calls a dedicated method exposed by the factory, passing the identifier of the target component together with information about the custom context. The factory starts execution of an additional module, operating as an impersonator (225), in a new process (230) conforming to the custom context. The impersonator then instantiates the target component in its own process. The impersonator passes a pointer for the target component to the factory (calling a further method that is exposed by the factory); the factory in turn returns that pointer to the client.
机译:提出了一种在自定义上下文中实例化COM组件的方法和系统。本发明的解决方案基于充当工厂的辅助组件( 215 )。每当客户端( 205 )需要在所需的自定义上下文中实例化新的目标组件时,它都会调用工厂公开的专用方法,将目标组件的标识符与有关自定义上下文的信息一起传递。工厂将在符合自定义上下文的新过程( 230 )中开始执行附加模块,充当模拟者( 225 )。然后,模仿者在自己的过程中实例化目标组件。模拟者将目标组件的指针传递给工厂(调用工厂公开的其他方法);反过来,工厂将该指针返回给客户端。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号