首页> 外国专利> METHOD AND APPARATUS FOR GENERATING AND EMPLOYING A RUN-TIME GENERATED STUB TO REFERENCE AN OBJECT IN OBJECT ORIENTED SYSTEMS

METHOD AND APPARATUS FOR GENERATING AND EMPLOYING A RUN-TIME GENERATED STUB TO REFERENCE AN OBJECT IN OBJECT ORIENTED SYSTEMS

机译:在面向对象系统中生成和使用运行时生成的树桩以引用对象的方法和装置

摘要

The method and apparatus for generating and employing a run-time generated stub to reference an object in an object oriented system. This method and apparatus represents in a first virtual machine a remote object implemented in a second virtual machine by employing a stub class. An object reference is sent by the second virtual machine and received by the first virtual machine. The object reference includes an interface descriptor that identifies the interface(s) of the remote object and an object handle that identifies the remote object. At run-time, the information associated with the remote object is transformed into a stub class that represents the remote object and implements only those interfaces identified by the interface descriptor and also defined by the first virtual machine. After the stub class is created, an instance of that stub class is generated and provided to the first virtual machine. In an alternative embodiment, an interface specific stub is created for each interface that is identified by the interface descriptor and defined by the first virtual machine. The interface specific stub is created at compile time. A delegator stub class is created at run-time that delegates to the interface specific stub(s).
机译:在面向对象的系统中用于生成和使用运行时生成的存根以引用对象的方法和装置。该方法和装置在第一虚拟机中表示通过使用存根类在第二虚拟机中实现的远程对象。对象引用由第二虚拟机发送,并由第一虚拟机接收。对象引用包括标识远程对象的接口的接口描述符和标识远程对象的对象句柄。在运行时,与远程对象关联的信息将转换为存根类,该存根类表示远程对象,并且仅实现由接口描述符标识并且也由第一虚拟机定义的那些接口。创建存根类后,将生成该存根类的实例并将其提供给第一个虚拟机。在一个替代实施例中,为由接口描述符标识并由第一虚拟机定义的每个接口创建特定于接口的存根。特定于接口的存根在编译时创建。在运行时创建一个委托存根类,该委托存根类委托给特定于接口的存根。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号