发明名称 Method and system for aggregating objects
摘要 A method and system for aggregating objects within a computer system are provided. In a preferred embodiment, the method aggregates an enclosed object within an enclosing object. The enclosed object has an object management interface and an external interface, while the enclosing object has a controlling object management interface. The controlling object management interface and the external interface of the enclosed object have query function members for receiving an identifier of an interface and for returning a reference to the identified interface. A preferred embodiment creates an instance of an enclosing object and an object to be enclosed. In static aggregation, the controlling object management interface of the enclosing object knows in advance how to return an identifier to the external interface of the enclosed object. In dynamic aggregation, an object to be enclosed is added to the enclosing object after the enclosing object is instantiated. Once aggregated, when the query function member of the object management interface of the enclosed object receives an identifier of an interface, it invokes the query function member of the controlling object management interface forwarding the interface identifier and returns the reference to an interface returned by the invoked query function member of the controlling object management interface. In dynamic aggregation, rules for determining to which interface to return a reference can by added to the enclosing object and used by the query function member of the controlling object management interface.
申请公布号 US6240465(B1) 申请公布日期 2001.05.29
申请号 US19970810418 申请日期 1997.03.04
申请人 MICROSOFT CORPORATION 发明人 LEACH PAUL;WILLIAMS ANTONY S.;JUNG EDWARD;HODGES C. DOUGLAS;KOPPOLU SRINIVASA R.;MACKICHAN BARRY B.;WITTENBERG CRAIG
分类号 G06F9/06;G06F9/42;G06F9/44;G06F12/02;(IPC1-7):G06F9/40 主分类号 G06F9/06
代理机构 代理人
主权项
地址