CA2134616C - Method and system for management of component connections - Google Patents

Method and system for management of component connections Download PDF

Info

Publication number
CA2134616C
CA2134616C CA002134616A CA2134616A CA2134616C CA 2134616 C CA2134616 C CA 2134616C CA 002134616 A CA002134616 A CA 002134616A CA 2134616 A CA2134616 A CA 2134616A CA 2134616 C CA2134616 C CA 2134616C
Authority
CA
Canada
Prior art keywords
component
interface
user
pointer
user component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CA002134616A
Other languages
French (fr)
Other versions
CA2134616A1 (en
Inventor
David S. Stutz
Chris T. Westin
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Microsoft Corp
Original Assignee
Microsoft Corp
Microsoft Technology Licensing LLC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Microsoft Corp, Microsoft Technology Licensing LLC filed Critical Microsoft Corp
Publication of CA2134616A1 publication Critical patent/CA2134616A1/en
Application granted granted Critical
Publication of CA2134616C publication Critical patent/CA2134616C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution

Abstract

A method and system for managing the connection of client components to an interface implemented by a server component. In a preferred embodiment, a user component provides an implementation of an interface and a description of the interface. A component manager aggregates the user component into itself to form a server component. When a client requests a connection to the interface, the component manager retrieves a reference to the interface from the user component and sends the reference to the client components. In a preferred embodiment, the component manager tracks the client components connected through an interface. A user component may also provide multiple interfaces to client components which the component manager also tracks.

Description

METHOD AND SYSTEM FOR MANAGEMENT
OF COMPONENT CONNECTIONS
Technical Field This invention relates generally to a computer method and system for management of component connection.
Background of the Invention Computer systems often employ object-oriented techniques. An object is composed of instance data (data members) and member fi~nctions (method), which implement the behavior of the object. Figure 1A is a block diagram of typical data structures used to represent an object. The data structures used to represent an object comprise instance data structure 1A01, virtual fimction table 1A02, and the function members 1A03, 1A04, lAOS.
The instance data structure 1A01 contains a pointer to the virtual function table 1A02 and contains data members. The virtual function table 1A02 contains an entry for each virtual fimction member defined for the object. Each entry contains a reference to the code that implements the corresponding function member. The layout of this sample object conforms to the model defined in U.S. Patent No. 5,297,284, entitled "METHOD FOR
IMPLEMENTING VIRTUAL FUNCTIONS AND VIRTUAL BASE CLASSES AND
SETTING A THIS POINTER FOR AN OBJECT-ORIENTED PROGRAMMING
LANGUAGE" issued March 22, 1994. In the following, an object will be described as an instance of a class as defined by the C++ programming language. One skilled in the art would appreciate that objects can be defined using other programming languages.
In the C++ language, object-oriented techniques are supported through the use of classes. A class is a user-defined type. A class declaration describes the data members and function members of the class. For example, the following declaration defines data members and a fi~nction member of a class named CIRCLE.
class CIRCLE
{ public:
int x, y;
intradius;
void draw();
)~

- ~1346~c Variables x and y specify the center location of a circle and variable radius specifies the radius of the circle. These variables are referred to as data members of the class CIRCLE. The function draw is a user-defined fwnction that draws the circle of the specified radius at the specified location. The function draw is referred to as a function member of class CIRCLE. The data members and function members of a class are bound together in that the function operates on an instance of the class. An instance of a class is also called an object of the class.
In the syntax of C++, the following statement declares the objects a and b to be of type class CIRCLE.
CIRCLE a, b;
This declaration causes the allocation of memory for the objects a and b. The following statements assign data to the data members of objects a and b.
a.x = 2;
a.y = 2;
a.radius = 1;
b.x = 4;
b.y b.radius = 2;
The following statements are used to draw the circles defined by objects a and b.
a.drawQ;
b.draw~;
A derived class is a class that inherits the characteristics--data members and function members--of its base classes. For example, the following derived class CIRCLE FILL inherits the characteristics of the base class CIRCLE.
class CIRCLE FILL : CIRCLE
{ public:
int pattern;
void fillQ;

~~.~~~i This declaration specifies that class CIRCLE FILL includes ail the data and function members that are in class CIRCLE in addition to those data and function members introduced in the declaration of class CIRCLE FILL, that is, data member pattern and function member fill. In this example, class CIRCLE FILL has data members x, y, radius, and pattern and fiznction members draw and fill. Class CIRCLE FILL is said to "inherit" the characteristics of class CIRCLE. A class that inherits the characteristics of another class is a derived class (e.g., CIRCLE FILL). A class that does not inherit the characteristics of another class is a primary (root) class (e.g., CIRCLE). A
class whose characteristics are inherited by another class is a base class (e.g., CIRCLE
is a base class of CIRCLE FILL). A derived class may inherit the characteristics of several classes, that is, a derived class may have several base classes. 'this is referred to as multiple inheritance.
A derived class may specify that a base class is to be inherited virtually.
Virtual inheritance of a base class means that only one instance of the virtual base class exists in the derived class. For example, the following is an example of a derived class with two nonvitrtual base classes.
class CIRCLE_1 : CIRCLE {...};
class CIRCLE 2 : CIRCLE {...};
class PATTERN : CIRCLE_l, CIRCLE 2{...};
In this declaration class PATTERN inherits class CIRCLE twice nonvirtually through classes CIRCLE 1 and CIRCLE 2. There are two instances of class CIRCLE in class PATTERN.
The following is an example of a derived class with two virtual base classes.
class CIRCLE 1 : virtual CIRCLE {...};
class CIRCLE 2 : virtual CIRCLE {...};
class PATTERN: CIRCLE_l, CIRCLE 2{...};
The derived class PATTERN inherits class CIRCLE twice virtually through classes CIRCLE_1 and CIRCLE 2. Since the class CIRCLE is virtually inherited twice, there is only one object of class CIRCLE in the derived class PATTERN. ane skilled in the art would appreciate virtual inheritance can be very useful when the class derivation is more complex.

~1346~
A class may also specify whether its function members are virtual.
Declaring that a function member is virtual means that the function can be overridden by a function of the same name and type in a derived class. In the following example, the function draw is declared to be virtual in classes CIRCLE and CIRCLE FILL.
S
class CIRCLE
{ public:
int x, y;
int radius;
virtual void drawU;
class CIRCLE FILL : CIRCLE
{ public:
int pattern;
virtual void draw();
}:
The C++ language provides a pointer data type. A pointer holds values that are addresses of objects in memory. Through a pointer, an object can be referenced. The following statement declares variable c~tr to be a pointer on an object of type class CIRCLE and sets variable c~tr to hold the address of object c.
CIRCLE *c~tr;
c_ptr = &c;
Continuing with the example, the following statement declares object a to be of type class CIRCLE and object b to be of type class CIRCLE FILL.
CIRCLE a;
CIRCLE FILL b;
The following statement refers to the function draw as defined in class CIRCLE.
a.drawn;

~134~~i Whereas, the following statement refers to the function draw defined in class CIRCLE FILL.
b.drawQ;
Moreover, the following statements type cast object b to an object of type class CIRCLE and invoke the function draw that is defined in class CIRCLE FILL.
CIRCLE *c~tr;
c~tr = &b;
c~tr->drawQ; // CIRCLE FILL::drawQ
Thus, the virnial function that is called is function CIRCLE FILL::draw.
An advantage of using object-oriented techniques is that these techniques can be used to facilitate the sharing of object structures. For example, object-oriented techniques facilitate the creation of compound documents. A
compound document is a document that contains objects generated by various computer programs. (Typically, only the data members of the object and the class type are stored in a compound document.) A word processing document that contains a spreadsheet object generated by a spreadsheet program is a compound document. A word processing program allows a user to embed a spreadsheet object (e.g., a cell) within a word processing document. In one way to allow this embedding, the word processing program is typically compiled, using the class definition of the object to be embedded, to access function members of the embedded object. Thus, the word processing program would need to be compiled using the class definition of each class of objects that can be embedded in a word processing document. To embed an object of a new class into a word processing document, the word processing program would need to be recompiled with the new class definition. Thus, only objects of classes selected by the developer of the word processing program can be embedded. Using this technique, new classes can only be supported with a new release of the word processing program.
To allow objects of an arbitrary class to be embedded into compound documents, interfaces are defined through which an object can be accessed without the need for the word processing program to have access to the class implementation at compile time. An abstract class is a class in which a virtual function member has no implementation (pure). An interface is an abstract class with no data members and whose virtual functions are all pure.

~~34~~t The following C-t-- class definition is an example definition of an interface. In this example, for simplicity of explanation, rather than allowing any class of object to be embedded in its documents, a word processing program allows spreadsheet objects to be embedded. An object that provides an interface is a server S object, and an object that uses an interface is a client object. Any spreadsheet object that provides this interface can be embedded, regardless of how the object is implemented. Moreover, any spreadsheet object, whether implemented before or after the word processing program is compiled, can be embedded.
class ISpreadSheet { virtual void FileQ = 0;
virtual void Editn = 0;
virtual void Formula() = 0;
virtual void Format() = 0;
virtual void GetCell (string RC, cell *pCell) = 0;
virtual void Data() = 0;
The developer of a spreadsheet program would need to provide an implementation of the interface to allow the spreadsheet objects to be embedded in a word processing document. When the word processing program embeds a spreadsheet object, the program needs access to the code that implements the interface for the spreadsheet object. To access the code, each implementation is given a unique class identifier. For example, a spreadsheet object developed by Microsoft Corporation may have a class identifier of "MSSpreadsheet," while a spreadsheet object developed by another corporation may have a class identifier of "LTSSpreadsheet." A persistent registry in each computer system is maintained that maps each class identifier to the code that implements the class. Typically, when a spreadsheet program is installed on a computer system, the persistent registry is updated to reflect the availability of that class of spreadsheet objects. ~ So long as a spreadsheet developer implements every function member defined by the interface and the persistent registry is maintained, the word processing program can embed the developer's spreadsheet objects into a word processing document.
Various spreadsheet developers may wish, however, to implement only certain function members. For example, a spreadsheet developer may not want to implement database support, but may want to support all other function members. To allow a spreadsheet developer to support only some of the function members, while still z13~~~, allowing the objects to be embedded, multiple interfaces for spreadsheet objects are defined. For example, the interfaces IData and IBasicSpreadsheet may be defined for a spreadsheet object as follows.
class IBasicSpreadsheet { virtual void FileQ = 0;
virtual void EditQ = 0;
virtual void Formula() = 0;
virtual void Format() = 0;
virtual void GetCell (string RC, cell'pCell) = 0;
class IData { virtual void DataQ = 0;
Each spreadsheet developer would implement the IBasicSpreadsheet interface and, optionally, the IData interface.
At run time, the word processing program (or any other client of the interface) would need to determine whether a spreadsheet object to be embedded supports the IData interface. To make this determination, another interface is defined (that every spreadsheet object implements) with a function member that indicates which interfaces are implemented for the object. This interface is named IUnknown (and referred to as the unknown interface or the object management interface) and is defined as follows.
class IUttlmown { virtual HRES1TLT Querylnterface (REFIID iid, void **ppv) = 0;
virtual IJLONG AddRefQ = 0;
virtual tJLONG Release Q = 0;
The IUnknown interface defines the function member (method) Queryinterface.
The method QueryInterface is passed an interface identifier (e.g., "IData") in parameter iid 3S (of type REFIID) and returns a pointer to the implementation of the identified interface for the object for which the method is invoked in parameter ppv. If the object does not ~13~6~
s support the interface, then the method returns a false. (The type I3RESULT
indicates a predefined status, and the type ULONG indicates an unsigned long integer.) HRESULT XX::Querylnterface(REFIn~ lid, void **ppv) { ret = TRUE;
switch (lid) { case I>D_IBasicSpreadsheet:
*ppv = *pIBasicSpreadsheet;
break;
case IID (Database:
*ppv = *pIData;
break;
case I>D ILJttlmown:
*ppv = this;
break;
default:
ret = FALSE;
}
if (ret = TRUE) {AddRefQ; } ;
return ret;
Code Table 1A contains C++ pseudocode for a typical implementation of the method QueryInterface for class XX, which inherits the class IUnknown.
If the spreadsheet object supports the IData interface, then the method QueryInterface includes the appropriate case label within the switch statement. The variables plBasicSpreadsheet and pIData point to a pointer to the virtual function tables of the I3asicSpreadsheet and IData interfaces, respectively. The method Querylnterface invokes the method AddRef (described below) to increment a reference count for the object of class XX when a pointer to an interface is returned.
void XX::AddRefQ {refcount++;}

~134G2i~

void XX::Release() {if (--refcount~) delete this;}
The interface IUnknown also defines the methods AddRef and Release, which are used to implement reference counting. Whenever a new reference to an interface is created, the method AddRef is invoked to increment a reference count of the object. Whenever a reference is no longer needed, the method Release is invoked to decrement the reference count of the object and, when the reference count goes to zero, to deallocate the object. Code Table 1B contains C++ pseudocode for a typical implementation of the methods AddRef and Release for class XX, which inherits the class IUnknown.
The IData, interface and IBasicSpreadsheet interface inherit the IUnknown interface. The following definitions illustrate the use of the IUnknown interface.
class IData : public lUnknown { public:
virtual void Data() = 0;
class IBasicSpreadsheet : public IUnknown { public:
virtual void FileQ = 0;
virtual void Edit() = 0;
virtual void FotmulaQ = 0;
virtual void Formats = 0;
virtual void GetCell (string RC, cell'pCell) = 0;
Figure 1B is a.block diagram illustrating a sample data structure of a spreadsheet object. The spreadsheet object comprises object data structure 1B01, IBasicSpreadsheet interface data structure 1B03, IData interface data structure 1B04, the virtual function tables 1B02, 1B05, 1B06 and methods 1B07 through 1B21.
The object data structure 1B01 contains a pointer to the virtual function table 1B02 and pointers to the IBasicSpreadsheet and IData interface. Each entry in the virtual function table 1B02 contains a pointer to a method of the IUnknown interface. The IBasic interface data structure 1B03 contains a pointer to the virtual function table 1B05. Each ~~.346~.
entry in the virtual function table 1 BOS contains a pointer to a method of the IBasicSpreadsheet interface. The IData interface data suucture 1B04 contains a pointer to the virtual function table 1B06. Each entry in the virtual function table contains a pointer to a method of the IData interface. Since the IBasicSpreadsheet and ~ IData interfaces inherit the IUnknown interface, each virtual function table 1B05 and 1B06 contains a pointer to the methods QueryInterface, AddRef, and Release. In the following, an object data structure is represented by the shape 1B22 labeled with the interfaces through which the object may be accessed.
The following pseudocode illustrates how a word processing program 10 determines whether a spreadsheet object supports the IData interface.
if (plBasic->Querytnterface("IData", &plData~S OK) \* IData supported else \* IData not supported The pointer pIBasicSpreadsheet is a pointer to the IBasicSpreadsheet interface of the object. If the object supports the IData interface, the method QueryInterface sets the pointer pIData to point to the IData data structure and returns the value S
OK.
Normally, an object can be instantiated (an instance of the object created in memory) by a variable declaration or by the "new" operator. However, both techniques of instantiation need the class definition at compile time. A
different technique is needed to allow a word processing program to instantiate a spreadsheet object at run time. One technique provides a global function CreateInstanceXX, which is defined in the following.
static void CreatelnstanceX3~ (ItEFIID lid, void **ppv) = 0;
The method CreatelnstanceXX (known as a class factory) instantiates an object of class XX and returns a pointer ppv to the interface of the object designated by parameter lid.
Summary of the Invention It is an object of the present invention to provide a method and system for managing the interaction between components.
It is an object of the present invention to provide a method and system that is not limited to any single problem domain.

~23~~~.

It is an object of the present invention to provide a method and system for managing the interaction between components that can be shared by all components.
It is an object of the present invention to provide a method and system for managing the interaction between components in a way that minimizes overhead.
It is another object of the present invention to provide a method and system to store components persistently across activations.
These and other objects, which will become apparent as the invention is described in detail below, are provided by a method and system for managing the connection of client components to an interface implemented by a server component.
In a preferred embodiment, a user component provides an implementation of an interface and a description of the interface. A component manager aggregates the user component into itself to form a server component. When a client requests a connection to the interface, the component manager retrieves a reference to the interface from the user component and sends the reference to the client components. In a preferred embodiment, the component manager tracks the client components connected through an interface. A user component may also provide multiple interfaces to client components which the component manager also tracks.
Brief Descaption of he Drawings Figure 1A is a block diagram of typical data structures used to represent an object.
Figure 1B is a block diagram illustrating a sample data structure of a spreadsheet object.
Figure 1 C is a block diagram illustrating a unidirectional connection.
protocol.
Figure 1 D is a block diagram illustrating a bidirectional connection.
Figure 1E is a block diagram illustrating multiple connections through a Figure 1F is a block diagram illustrating a component that supports multiple protocols.
component.
Figure 2A is a block diagram illustrating the structure of a preferred Figure 2B is a block diagram illustrating a preferred data structure of a component manager.
Figure 3 is a block diagram illustrating an example of a connection between two components in a preferred embodiment.
Figure 4 is a flow diagram of the function CornponentInit.

~1346xt Figure ~ is a flow diagram of the function ComponentConnect.
Figure 6 is a flow diagram of the function ComponentDisconnect.
Figure 7 is a flow diagram of the method Connect of the IJack interface.
Figure 8 is a flow diagram of the method NotifyDidConnect of the IJack interface.
Figure 9 is a flow diagram of the method NotifyAndDisconnect of the IJack interface.
Figure 10 is a flow diagram of the method Disconnect of the IJack interface.
Figure 11 is a flow diagram of the method ConnectAndNotify of the IPlug interface.
Figure 12 is a flow diagram of the method NotifyWillDisconnect of the IPlug interface.
Figure 13 is a flow diagram of the method Disconnect of the IPlug interface.
Figure 14 is a flow diagram of the method NewConnector of the IComponentJack interface.
Figure 15 is a flow diagram of the method E:ctrude of the lDescriptorEntry interface.
Figure 16 is a block diagram illustrating lazy binding.
Figure 17 is a block diagram illustrating a preferred implementation of the multicast interface stub.
Figure 17A is a flow diagram illustrating a sample method of a stub.
Figure 18 is a flow diagram of the method Passivate of the IConnector interface.
Figure 19 is a flow diagram of the method BindStub of the IConnector interface.
Figure 20 is a block diagram illustrating a parent component and a child component.
Figures 21A and 21B comprise a a flow diagram of the function ComponentCreateChild.
Figure 22 is a flow diagram of the function ComponentProjectDescriptor.
Figure 23 is a flow diagram of the method SetMoniker of the IComponent interface.
Figure 24 is a flow diagram of the method GetMoniker of the class ComponentManager.

~1~~~~.«

Figure 25 is a flow diagram of the method SetParentMoniker of the class ComponentManager.
Figure 26 is a flow diagram of the private method Rename of the IComponent interface.
Figure 27 is a flow diagram of the method SetChildMoniker of the IComponent interface.
Figure 28 is a flow diagram of the method SetParentComponent of the IComponent interface.
Figure 29 is a flow diagram of the method DoEagerBinds of the IComponent interface.
Figure 30 is a block diagram illustrating a sample system using the present invention.
Figure 31 is a diagram of the display of a sample visual program.
Figure 32 is a block diagram of the instantiated components.
~etai_led Description of the Invention The present invention provides a method and system for managing the sharing of interfaces between components. In a preferred embodiment, a user component provides an implementation of an interface and a description of the interface. A component manager aggregates the user component into itself to form a server component. When a client component requests a connection to the interface, the component manager retrieves a reference to the interface from the user component and sends the reference to the client component. In a preferred embodiment, the component manager tracks the client components connected through an interface. A user component may also provide multiple interfaces to client components which the component manager also tracks.
A component provides services to various other components. These services are provided through an interface that the component implements. A
component that provides an interface is referred to as server component (server), and a component that uses the services of the interface is a client component (client). A client component is passed a pointer to the interface and requests services by invoking the methods of the interface. In certain cases, the client component may want to be notified directly by the server component of some event, or the server component may want to retrieve information from its client component. In these certain cases, the client component provides an interface, referred to as a reverse interface, to the server component. The server component is passed a pointer to the reverse interface and requests services by invoking methods of the reverse interface. Typically, a server 2134~1r:~

component provides a specific interface and request services of the client component through a specific reverse interface. The combination of the specific interface and reverse interface is known as a protocol. Protocols may be either unidirectional or bidirectional. A unidirectional protocol is one in which the client component does not provide a reverse interface. Thus, services are only provided by the server component.
A bidirectional protocol is one in which both the client and server components provide interfaces. Thus, services are provided by both the server and client components. A
connection is established via a protocol between a server component and a client component by passing a pointer to the interface from the server to the client and if the protocol is bidirectional, passing a pointer to the reverse interface from the client to the server. (The Appendix, entitled "OLE 2.0 Design Specification," contains a detailed description of interfaces and components).
Figure 1C is a block diagram illustrating a unidirectional connection.
The server 101 provides the IServer interface to the client 102. The client 102 contains a pointer to the IServer interface. Figure 1D is a block diagram illustrating a bidirectional connection. The server 111 provides the IServer interface, and the client 112 provides the IClient interface. The server 111 contains a pointer to the IClient interface, and the client 112 contains a pointer to the IServer interface. The server 111 and the client 112 are connected via the IServer/IClient protocol.
In the case of a bidirectionai protocol, both the server component and the client component provide services to the other. Thus, each component can be considered to be both a server and a client of services. By specifying a certain protocol that it supports, a component is identifying services it provides and services it requires of a client component. In the following, one interface of a protocol will be referred to as a jack interface, and the other interface will be refeaed to as a plug interface. The component that provides the jack interface is said to provide the jack connection of the protocol, and the component that provides the plug interface is said to provide the plug connection of the protocol.
A component may allow multiple connections to be established for a protocol. Figure 1E is a block diagram illustrating multiple connections through a protocol. The server 121 provides the IServer interface and clients 122 and 123 each provide an implementation of the IClient interface. The server 121 contains a pointer to each IClient interface, and each client 122 and 123 contains a pointer to an IServer interface. The server 121 may provide different pointers to each client to allow the server to maintain state information for each client and to identify the client requesting a service.

z~.31~6~.~
A component may also support multiple protocols and multiple connections may be established for each protocol. Figure 1F is a block diagram illustrating a component that supports multiple protocols. Server 131 supports the IServerA/IClientA protocol and the IServerB/IClientB protocol. Clients 132 and are connected through the IServerA/IClientA protocol, and clients 134 and 135 are connected through the IServerB/IClientB protocol.
The present invention provides a method and system for controlling the establishing of connects between components. In a preferred embodiment, a component that provides an implementation of an interface of a protocol is a user component. A user component is aggregated with a component manager object to form a component object. The component manager object (component manager) manages the establishing and tracking of connections to the interfaces provided by the user component. The component manager provides interfaces through which connections can be established in a domain independent manner.
Figure 2A is a block diagram illustrating the structure of a preferred component. Component object 201 comprises component manager 202, user component 203, and connector objects 204 (connectors). The component manager manages connecting the component 201 to other components through protocols provided by the user component 203. The component manager provides an IComponentManager interface for controlling the connecting of components. The user component 103 provides the domain specific behavior of the interfaces. The connectors 104 are created by the component manager, track the state of connections, and provide an IConnector interface for controlling connections.
Figure 2B is a block diagram illustrating a preferred data structure of a component manager. A component 211 comprises a component manager 212 and a link list of connector descriptor entries 213 (a DEList). Each descriptor entry points to a link list of connector entries 214 (a CEList) and to a connector descriptor 215. The component manager creates one descriptor entry for each protocol provided by the user component. The component manager creates a connector entry for each connection for the given protocol. Each connector descriptor is provided by the user component and describes one protocol provided by the user component. The component manager points to the user component 216 and a component descriptor 217. The component descriptor is provided by the user component and describes attributes of the component.
The present invention provides various functions that can be used to connect components. In one embodiment, these functions can be provided through an IComponent interface provided by a component manager. A basic function is the function ComponentNewConnector, which "extrudes" a connector for the specified ~1~4~~~~

protocol. To extrude a connector, the component manager creates a new connector entry for the specified protocol and returns a pointer to the IConnector interface of the new connector entry. When both a plug and a jack connector for a protocol are extruded, they can be connected with the function ComponentConnect. The function ComponentConnect stores a pointer to the reverse interface in each user component and initializes state information to track the connection. Figure 3 is a block diagram illustrating an example of a connection between two components in a preferred embodiment. Components 301 and 311 are to be connected via t:~e IUSERJACK/IUSERPLUG protocol. Component 301 contains component manager 302 and descriptor entry 303, which describes the IUSERJACK interface.
Component 301 is requested to extrude jack connector 304 for the IUSERJACK interface.
The component manager 302 searches the descriptor entries for the IUSERJACK
interface entry 303 and instantiates jack connector 304. The jack connector 304 contains a pointer to the IUSERJACK interface provided by the user component 305.
Similarly, component 311 contains component manager 312 and descriptor entry 313, which describes the IUSERPLUG interface. Component 311 is requested to extrude plug connector 314 for the lUSERPLUG interface. The component manager 312 searches the descriptor entries fir the IUSERPLUG interface entry and instantiates plug connector 314. The plug connector 314 contains a pointer to the IUSERPLUG
interface provided by the user component 315.
Once the jack connector 304 and the plug connector 314 are extruded, then the components can be connected through these connectors. In one embodiment, a function ComponentConnect is passed both the jack connector 304 and the plug connector 314 by passing pointers to their IConnector interface. The function ComponentConnect sets the jack connector 304 and the user component 305 to point to the IUSERPLUG interface (illustrated by dashed lines). Similarly, the function ComponentConnect sets the plug connector 314 and the user component 3 f5 to point to the IUSERJACK interface (illustrated by dashed lines). The user components 305 and 315 can now access the methods of their reverse interfaces through the reverse interface pointers.
2~.3~G1 n CODE TABLE ?A
suvct ComponentDescriptor f ULONG flag;
ULONG cConnectors;
const ConnectorDescriptor FAR *pConnDesc;
I~tESULT (FAR *Create) (IUnknown FAR *pUnkOuter, struct ComponentManager FAR *pComponentManager, 1 O IUnlmown FAR *FAR'pplUnk, REFCLSID clsid);
);
struct ConnectorDescriptor f const I)D *piid;
const tID *piidm;
LPC'fSTR iname;
ULONG flag;
ULONG cMaxConnectors;
size t RevlfacePtrOff;
IUnlmown FAR *(FAR *Create) (IUnknown FAR *pConu~oller, IUnknown FAR *pComponent);
void (FAR *Delete)(ILJnlolown FAR *pConnector);
void (FAR *Connect)(IUnlmown FAR *pConnector);
void (FAR *Disconnect)(IUnlmown FAR *pConnector);
During component creation, the user component provides to the component manager a component descriptor. Code Table 2A contains a component descriptor data structure. The component descriptor contains a pointer an array of connector descriptors (pConnDesc), a count of the number of entries in the array (cConnectors), a pointer to a create callback routine into the user component (*Create), and a flag (flag). The component manager invokes the create callback routine during component creation. The flag describes various attributes of the component as described below.
Each connector descriptor contains the interface id of the interface provided by the user component (piid) and the corresponding reverse interface id (piidm), an instance name (iname), maximum number of connectors (cMaxConnectors), the offset of the reverse interface pointer in the user component (RevIfacePtrOff), various callback routines into the user component, and a flag (flag). Code Table 2B contains a connector descriptor data structure. The interface id specifies the interface of the protocol that the user component provides and the reverse interface id specifies the interface that the user component expects to be provided by the connected to component. The instance name is used to distinguish multiple implementations of the same protocol that are provided by the user component. The maximum number of connectors indicates the maximum number of connectors for the described protocol that can be extruded at one time. The offset of the reverse interface pointer into the user component indicates to the component manager the location of the reverse interface pointer relative to the provided interface pointer. The component manager notifies the user component of changes in the state of connection through various callback routines. In a preferred embodiment, a user component is notified that a connector is extruded, connected, disconnected, and deleted through callback routines. The flag describes various attributes of the connector as described below.
The present invention provides various functions to create connectors and establish connections between components. The functions include a fimction to create a new connector (ComponentNewConnector), a function to connect two connectors (ComponentConnect), a function to disconnect two connectors (ComponentDisconnect), and a function to delete a connector (ComponentDeleteConnector). In addition, a preferred embodiment also provides fixnctions to enumerate the connector descriptors and the connectors.
The present invention also provides a function to initialize the component manager (ComponentInit). When a user component is created, the user component class factory invokes the fimction ComponentInit passing the class of id of the user component and a component descriptor that points to an array of connector descriptors. The function creates a component manager object and creates and aggregates the user component. (The aggregation of objects described in U.S. Patent No. 5,710,925 entitled "METHOD
AND
SYSTEM FOR AGGREGATING OBJECTS" issued January 20, 1998). The fimction also creates the DEList corresponding to the array of connector descriptors. A
preferred prototype of the function ComponentInit is ~13~6~~
l9 STDAPI Componenttnit( IUnlatown FAR "pUnkOuter, REFIID riid, IUnknown FAR *FAR *pplUnk, const ComponentDescriptor FAR *pCompDesc, REFCLS1D clsid);
The parameter pUnkOuter points the controlling IUnknown interface; the parameter riid is the interface id of the interface to be returned in parameter ppIUnk; the parameter pCompDesc is a pointer to the component descriptor; and parameter clsid is the class id of the user component. Figure 4 is a flow diagram of the function ComponentInit. In step 401, the function allocates a component manager object. In step 402, the function initializes the component manager by setting the DEList to empty. In step 403, the function creates and adds a descriptor entry to the DEList corresponding to each connector descriptor specified in the array of connector descriptors. In steps 404-407, the function aggregates the component into an aggregate object if the parameter pUnkOuter is not NULL. In step 404, the function sets the pUnkOuter for the component manager equal to the parameter pUnkOuter. In step 405, if the parameter pUnkOuter equals NULL, then the function continues at step 406, else the function continues at 407. In step 406, the function sets the pUnkOuter of the component manager to point to the IUnknown interface of the component manager and continues at step 408. In step 407, if the requested interface is not the IUnknown interface, then the function returns. In step 408, the function invokes the create callback of the user component specified in the component descriptor. The create cailback creates a user component and aggregates it into the component. The function sets the component manager to point to the user component. In steps 409 through 414, the function retrieves a pointer to the interface specified by the parameter riid. In step 409, if the parameter pUnkOuter is NULL, then the function continues at step 413, else the function continues at step 411. In step 411, the function sets the requested interface to the IUnknown interface. In step 412, the function increments the reference count of the component manager and returns. In step 413, the function retrieves the requested interface by invoking the method QueryInterface of the controlling IUnknown.
In step 414, the function returns the requested interface.
Once a component is created and initialized, connectors may extruded and connected. The function ComponentNewConnector creates a connector for the ~1~~~~.fia ?o specified interface id and returns a pointer to the IConnector interface of the connector.
A preferred prototype of the function ComponentNewConnector is STDAPI ComponentNewConnector( ComponentManager FAR *pCM, REFIID riid, LPCTSTR pName, (Connector FAR' FAR'pplConnector);
The parameter pC:l~f points to the component manager of the component; the parameter riid is the interface id of and the parameter pName is the instance name of the descriptor entry describing the protocol for which a connector to be created;
and the parameter ppIConnector is a pointer to the created connector. The connector contains a pointer to the interface provided by the user component. The function invokes the create callback for the descriptor entry to retrieve the pointer to the interface. In a preferred embodiment, the fu.~ICtion ComponentNewConnector invokes a method NewConnector of the IComponentJack interface of the passed component manager to create a new connector. The method NewConnector is described below.
A connection is established by invoking the function ComponentConnect. This function is passed pointers to two connectors (IConnector interface). The function determines which connector is a plug and a jack, and ensures that they represent reverse interfaces of a protocol. The function then invokes the method Connect of the jack connector and then the method ConnectAndNotify of the plug connector. If the method Connect of the jack connector returns an indication that the jack connector is to be notified when the method ConnectAndNotify of plug connector returns, then the function invokes the method NotifyDidConnect of the jack connector. The user component of either component may be notified via the connect callback specified in the connector descriptor. By convention, the user component of the plug connector is notified of the connection by the component manager before the user component of the jack connector is notified. Thus, a plug connector may be used to perform connection specific initialization. A preferred prototype of the function ComponentConnect is STDAPI ComponentConnect( (Connector FAR'pIConnectorl, (Connector FAR'pIConnector2);

~134~1.i~

The parameters pIConnectorl and pIConnector2 point to the connectors to be connected. Figure ~ is a flow diagram of the function ComponentConnect. In step X01, the function determines which connector is a plug. In step X02, if the connectors do not represent reverse interfaces of a protocol, then the function returns an error. In step 503, the function invokes the method Connect of the jack connector passing a pointer to the plug connector. The method Connect returns a flag indicating whether the jack connector is to be notified after the connection to the plug connector is complete. In step X04, the function invokes the method ConnectAndNotify of the plug connector passing a pointer to the jack connector. In step X05, if the jack connector is not to be notified, then the function returns. In step 506, the function invokes the method NotifyDidConnect of the jack connector and returns. Once a connection is established, the user components can use the reverse interface pointer to access the methods of the interface.
A connection is broken by invoking the function ComponentDisconnect.
The function ComponentDisconnect ensures that the passed connectors are connected and determines which connector is the jack and plug connector. The function then invokes the method NotifyWillDisconnect of the plug connector, the method NotifyAndDisconnect of the jack connector, and the method Disconnect of the plug connector. A preferred prototype of the function ComponentDisconnect is STDAPI ComponentDisconnect( IConnector FAR °pIConnectorl, IConnector FAR'pIConnector2);
The parameters pIConnectori and pIConnector2 point to the IConnector interfaces of the connectors to be disconnected. Figure 6 is a flow diagram of the function ComponentDisconnect. In step 601, if the passed connectors are not connected, then the function returns an error. In step 602, the function determines which connector is a plug and a jack. In step 603, the function invokes the method NotifyWillDisconnect of the plug connector. In step 604, the function invokes the method NotifyAndDisconnect of the jack connector. In step 605, the function invokes the method Disconnect of the plug connector. In step 606, the function releases the plug and jack connectors and returns.

~13~~~~~

CODE TABLE
class IJack STDMETHOD Connect( IPlug FAR *pIP, ULONG FAR *pCDFlag, UL,ONG FAR *pFlag, IID FAR *pJacldID, I1D FAR *pPlugIID)~;
STDMETHOD NotifyDidConnectQ~;
STDMETHOD NotifyAndDisconnect(}~;
STDMETHOD Disconnect--0;
class IPlug STDMETHOD ConnectAndNorifyQ=0;
S'iDMETHOD NorifyWilIDisconnect(~;
STDMETHOD Disconnect;
Code Table 3 contains the interface descriptions for the IJack and IPlug interfaces. A jack connector provides the IJack interface and a plug connector provides the IPlug interface. The methods of these interfaces are used to establish the connection between components.
Figure 7 is a flow diagram of the method Connect of the IJack interface.
The method is passed a pointer to a plug (pIP) and connects this jack (indicated by the "this" pointer) to that plug. The method returns the identifier of the jack and plug interfaces (pJackiID) and pPlug~), a descriptive flag for this jack (pCDflag), and a flag indicating whether this jack is to be notified when the connection is complete (pFlag). In step 701, if this jack is connecting or connected, then the method returns an error. In step 702, if the user component for this jack wants to be notified, as indicated by the connect callback, then the method continues at 703, else the method continues at 704. In step 703, the method sets this jack to indicate connecting. In step 704, the method sets this jack to indicate connected. In step 705, the method retrieves a pointer to the plug interface from the passed plug. In step 706, the method set the reverse ~~3~G~~~
interface pointer of this jack. In step 707, the method sets the reverse interface pointer of the user component and returns.
Figure 8 is a flow diagram of the method NotifyDidConnect of the IJack interface. This method notifies the user component of the connection. In step 801, if this jack is not connecting, the method returns an error. In step 802, the method sets this jack to indicate connected and not connecting. In step 803, the method invokes the connect callback of the user component as indicated by the descriptor entry of this jack and returns.
Figure 9 is a flow diagram of the method NotifyAndDisconnect of the IJack interface. In step 901, if this jack is not connected, then the method returns an error. In step 902, if the user component is to be notified of the disconnect, then the method invokes the disconnect callback in step 903. In step 904, the method sets this jack to indicate not connected and not connecting. In step 905, the method releases the plug interface and returns.
Figure 10 is a flow diagram of the method Disconnect of the IJack interface. In step 1001, if this jack is not connected or connecting, then the method returns an error. In step 1002, the method sets this jack to indicate not connected and not connecting. In step 1003, the method releases the plug interface and returns.
Figure 11 is a flow diagram of the method ConnectAndNotify of the IPlug interface. In step 1101, if this plug is already connected, then the method returns an error. In step 1102, the method retrieves a pointer to the connected to jack interface.
In step 1103, the method sets the reverse interface pointer in this plug to point to the jack interface. In step 1104, the method sets the reverse interface pointer of the user component to point to the jack interface. In step 1105, if the user component is to be notified of the connection, then the method invokes the connect callback of this plug in step 1106. The method then returns.
Figure 12 is a flow diagram of the method NotifyWillDisconnect of the IPlug interface. In step 1201, if this plug is not connected, then the method returns an error. In step 1202, if the user component is to be notified of the disconnect, then the method invokes the disconnect callback in step 1203. In step 1204, the method sets this plug to indicate not connected and disconnecting and returns.
Figure 13 is a flow diagram of the method Disconnect of the IPlug interface. In step 1301, if this plug is not disconnecting, then the method returns an error. In step 1302, the method releases the jack interface. In step 1303, the method sets this plug to indicate not connected and not disconnecting and then returns.

~134G~

class IComponentlack: IUnknown STDMETHOD EnumerateDescriptors( IEnumDescriptor FAR *FAR *ppIEnumDesc, ULONG flag, REFI)D lid, LPCTSTR lpszName~;
STDI~THOD EnumerateConnectors( IEnumConnector FAR *FAR *pplEnumConn, REFI117 DescIJD, LPCTSTR lpszName~;
STDIv~THOD NewConnector( REFIID DescIID, LPCTSTR IpszName, IConnector FAR *FAR *pplConnector}~;
STDMETHOD DeleteConnector(IConnector FAR *pIConnector~0;
The component manager provides various interfaces for use in managing connections between components. Code Table 4 contains a description of the IComponentJacic interface. The interface defines four methods. The first two methods EnttmerateDescriptors and EnumerateConnectors provide a mechanism for enumerating the connector descriptors and connectors. The methods return a pointer to an enumerator interface. The enumerator interface has a method Next that can be used to retrieve the connector descriptors or connectors serially. The method EnumerateDescriptors provides for the enumeration of each connector descriptor. The method is passed an interface id, an instance name, and a flag. The method returns a pointer to an enumerator for all connector descriptors or for only those connector descriptors that match the interface id or instance name based on the passed flag. The method EnumerateConnectors provides for the enumeration of each extruded connector of a specified connector descriptor. The method is passed an interface id and an instance name to specify a connector descriptor and returns a pointer to an enumerator.
The method NewConnector of the IComponentJack interface extrudes a connector for the specified connector descriptor and returns a pointer to the connector.
The method is passed an interface id (DescIID) and an instance name of a connector descriptor (lpszName). Figure 14 is a flow diagram of the method NewConnector of the IComponentJack interface. In step 1401, the method selects a descriptor entry corresponding to the passed interface id and instance name. In step 1402, if no descriptor entry is selected, then the method returns an error. In step 1403, the method extrudes a connector entry for selected descriptor entry and returns. The method invokes the method Extrude of the selected descriptor entry. The method DeleteConnector of the IComponentJack interface functions in an analogous manner to remove an extruded connector. In a preferred embodiment, a descriptor entry contains state information including a pointer to the connector descriptors, the maximum number of connectors that can be extruded for this descriptor entry, the number of connectors currently extruded, a pointer to the CEList, connection id generator to help in generating unique identifiers for its connectors, and a flag field to maintain the state of the descriptor entry. As described below, the state of a descriptor entry can be private, projection, or projected.
class IDescriptorEntry: IUnlmown ConnectorEntry FAR * Extrude( IComponent FAR * pICManifesting, ULONG CEflag, IUcalaiown FAR * pComponent, IConnector FAR *FAR * ppIConnector)~;
};
Code Table ~ contains a description of the 117escriptorEntry interface. The interface defines the method Extrude that returns a pointer to a newly created connector entry. The method is passed a pointer to a manifesting component (pICManifesting) (described below), a flag (CEflag), and a pointer to the user component (pComponent) and returns a pointer to newly created connector (ppIConnector). Figure 15 is a flow diagram of the method Extrude of the IDescriptorEntry interface. In step 1501, if the maximum number of connectors for the connector descriptor has already been extruded, then the method returns an error. In step 1502, the method creates and initializes a connector entry. In step 1503, the method links the connector entry into the CEList of this descriptor entry. In step 1504, the method increments the number of connectors extruded for this descriptor entry. In step 1505, the method sets the connection id of 11~~~~~i the connector entry. Each connector entry for a descriptor entry has a unique connection id. In step 1506, the method increments the connection id generator of this descriptor entry. The connection id generator provides a unique connection id.
In step 1507, the method invokes the create callback of the user component indicated by the connector descriptor passing a pointer to the user component and returns. The create callback returns a pointer to the interface of the protocol that is provided by the user component. In a preferred embodiment, a connector entry contains a unique connection id for the descriptor entry, a pointer to the interface provided by the user component, a reverse interface pointer, a pointer to a moniker of the mate connector, a pointer to the manifesting component, and a flag containing state information. The state information indicates whether the cotmector is connected, connecting, or disconnecting and whether the mate is a stub (described below).
A preferred embodiment provides for "lazy binding" to reverse interfaces. When a connection is established with lazy binding, the reverse interface pointers of the connector and the user component are set to point to a stub for the reverse interface, and not to the "real" reverse interface provided by the connected to component. The stub is a different implementation of the reverse interface.
When any one of the methods of the stub is invoked, the method binds to the reverse interface and replaces the reverse interface pointers of the connector and the user component with a pointer to the bound reverse interface. Each method then invokes the corresponding method of the reverse interface. In this way, the binding to a reverse interface can be delayed until the reverse interface is actually referenced by a user component. Each connector descriptor preferably contains a pointer to a class factory to create the reverse interface stub. Each stub method, although implemented by a user component author, invokes predefined functions to retrieve information from the connector needed to bind to the reverse interface. Thus, the user component author does not need to know the internals of the componem manager structure. If a stub class factory is not specified in a connector descriptor, then no lazy binding occurs.
Figure 16 is a block diagram illustrating lazy binding. When a connector entry is first extruded, the connector entry is set to point to a stub for the reverse interface. The satb provides a lazy binding implementation of the reverse interface. When a method of the stub is invoked, the method binds to the reverse interface indicated by the reverse interface moniker (described below) of the connector and then invokes the corresponding method of that bound interface. In Figure 16, the reverse interface pointer (previnterface) of the connector entry 1601 points to the stub 1603. Also, the reverse interface pointer of the user component 1602 points to the stub 1603. The stub 1603 contains internal information, including a pointer to connector entry 1601. The virtual function table 1604 points to each stub method 1605.
When a connection is established, the connector entry 1601 is set to point to a reverse interface moniker 1607. When the user component accesses a method through the reverse interface pointer, a stub method is invoked.
As illustrated by the pseudocode of methodl 1605, each stub method binds to the reverse interface identified by the reverse interface moniker, sets the reverse interface pointers to point to the bound reverse interface, invokes the corresponding method of the bound reverse interface, and then returns.
To implement lazy binding, each component is assigned a component moniker that uniquely identifies the component. Each connector generates a connector moniker that uniquely defines the connector within the component. The connector moniker contains the interface id, instance name, and connection id to provide the unique identification. The method GetMoniker (described below) of the IConnector interface returns a connector moniker for the connector. When a connection is established, each connector is provided with a connector moniker for the reverse interface (monikers are described in detail in U.S. Patent No. 5,581,760, entitled "METHOD AND
SYSTEM FOR REFERRING TO AND BINDING TO OBJECTS USING IDENTIFIER OBJECTS"
issued December 3, 1996. When binding through a reverse interface sub, the method BindToObject of the reverse interface moniker is invoked.
In a preferred embodiment, connections may be designated as persistent or nonpersistent in the connector descriptor. A nonpersistent connector is deallocated when all references to it go away (e.g. reference count equals 0). A persistent connector, on the other hand, is not deallocated when all references to it go away. When a persistent connector is connected, a moniker identifying the reverse interface is stored in the connector. The methods of the reverse interface stub use this moniker to bind to the reverse interface. When a nonpersistent connector is connected, then the reverse interface is bound at that time and the reverse interface pointers are set to point to the real reverse interface.
An embodiment of the present invention provides for multicasting a message to all components connected through a protocol. A message is multicasted by invoking a method of each connected connector for a specified connector descriptor. The function GetMulticastStub returns a pointer to a multicast stub implementation of the reverse interface. The function is passed an interface id and instance name and returns a pointer to the multicast stub. To multicast a message, the user component invokes a method of the multicast stub. Each method of the multicast stub invokes the corresponding method of the reverse interface of each connected connector. Figure 17 z2~~d~I~
~8 is a block diagram illustrating a preferred implementation of the multicast interface stub. The descriptor entry 1701 points to connector entries 1702-1703.
Connector entry 1702 is connected but is not yet bound; connector entry 1702 points to the lazy binding stub 1704 as its reverse interface pointer. Connector entry 1703 is bound and j points to the reverse interface 1705. The multicast stub 1706 points to the descriptor entry 1701. Each method of the multicast stub 1706 is pointed to through the virtual function table 1707. Each method of the multicast stub 1708 loops through the connector entry list and if a connector entry is connected, the method invokes the corresponding method of the reverse interface. The multicasting of a message is logically equivalent to enumerating each connector and invoking a method of the reverse interface. A method that returns a parameter cannot be multicast through this mechanism.
Figure 17A is a flow diagram illustrating a sample method of a stub.
The reverse interface stub and a multicast stub share the same implementation.
The stub method loops invoking the function ConnectorStubImplementation provided by the component manager. That function returns a pointer to a reverse interface.
The stub method invokes the corresponding method of the reverse interface. When the function returns a return value of false, then the stub method return. When multicasting, the stub method loops receiving reverse interface pointers. When not multicasting, only one reverse interface pointer is returned. In step 1751, the method invokes the function ConnectorStubImplementation which returns a reverse interface pointer and a return value. In step 1752, if the return value is false, then the method returns. In step 1753, the method invokes the corresponding method of the reverse interface and loops to step 1751. The function ConnectorStubImplementation determines whether it is being invoked by a reverse interface stub or a multicast stub by internal information stored in the stub.
class IConnector: IUt>)mown STDMETHOD GetMoniker(IMoniker FAR *FAR *ppmlQ)=0;
STDMETHOD GetOwner(IComponent FAR *FAR *pplC)=0;
STDMETHOD (sConnectedn~;
STDMETHOD Getlnfo(IID FAR *piid, LPTS'IR FAR *ppiname, IID FAR *piidm, ULONG FAR *pCDfiag}=0;
STDMETHOD ReieaseMate(}=0;

-\ ' ~
~~J~(7~1i STDMETHOD SetMateConnector(IUnla~own FAR'plUnk)=0;
STDMETHOD GetMateConnector(IUnlrnown FAR 'FAR "pplUnk)=0;
STDMETHOD Passivate(}=0;
STDMETHOD Bindstubn=0;
Code Table 6 contains a description of the IConnector interface. Each connector entry provides this interface to manipulate the connection. The method GetMoniker returns the moniker for this connector. The method instantiates a connector moniker and sets data members to the interface id, instance name, and connection id of this connector. The method then composes the connector moniker with the component moniker for the manifesting component and returns. The manifesting component is the component that extrudes this connector. The method GetOwner returns a pointer to the manifesting component of this connector. The method IsConnected returns the value true if this connector is currently connected. The method GetInfo gathers and returns the interface identifier, the reverse interface id, the instance name, and a status flag of this connector. The method ReleaseMate invokes the method release of the reverse interface and creates a reverse interface stub. The method SetMateConnector sets the reverse interface pointer of this connector and the user component to the passed interface. The method sets this connector to the connected. The method GetMateConnector binds to the stub if not already bound and returns the pointer to the reverse interface.
The component manager provides a mechanism to passivate (unbind) a connection. Either the interface or the reverse interface of a connection can be passivated. A connector is passivated by releasing the reverse interface (if not a reverse interface stub) and replacing it with a reverse interface stub. The reverse connector is passivated by invoking the method ReleaseMate of the IConnector interface. A
connection is passivated by the method Passivate of the IConnector interface.
The method is passed an indication as to whether a reverse interface stub should be left and whether the mate connector should be passivated also. Figure 18 is a flow diagram of the method Passivate of the (Connector interface. In step 1801, if the passed flag indicates to passivate only the connection to the reverse interface, then the method continues at step 1806, else the method continues at step 1802. In step 1802, if this connector is not bound to the reverse interface or is bound to a reverse interface stub, then the method continues at step 1803, else the method continues at step 1804. In step 1803, the method binds to the reverse interface and retrieves a pointer to the IConnector interface of the mate connector. In step 1804, the method retrieves a pointer to the ~~.3~~~.~:
~o IConnector interface of the mate connector. In step 1805, the method invokes the method ReleaseMate of the mate connector to request the mate connector to release the interface provided by this connector. In step 1806, if this connector is bound to a reverse interface stub, then the method continues at step 1807, else the method continues at step 1809. In step 1807, if the passed flag indicates to leave a reverse interface stub, then the method returns. In step 1808, the method releases the reverse interface stub and sets the reverse interface pointers to NULL and returns. In step 1809, the method releases the reverse interface by invoking the method Release. In step 1810, if the passed flag indicates to not leave a stub, then the method returns. In step 1811, the method creates a reverse interface stub, sets the reverse interface pointers, and returns.
The inverse of passivating a connection is binding to a connection.
Figure 19 is a flow diagram of the method BindStub of the IConnector interface. In step 1901, if this connector is not connected to a stub, then the method returns an error.
1 S In step 1902, the method binds to the reverse interface by invoking the method BindToObject of the reverse interface moniker. In step 1903, the method sets this connector to indicate that it is not connected to a stub. In step 1904, the method sets the reverse interface pointers to point to the bound to reverse interface. In steps 1905 and 1906, the method optionally connects the mate connector and sets its reverse interface pointers. In step 1905, the method retrieves the ICotmector interface of the mate connector. In step 1906, the method sets the reverse interface pointers of the mate connector to point to the interface provided by this connector and returns.
The IConnect interface provides the method SetMateConnector that is passed a pointer to a reverse interface, sets the connector to connected, and sets the reverse interface pointers.
A preferred embodiment of the present invention allows components to be embedded within a container component. The embedded component is a child component (child), and the container component is a parent component (parent).
The connector descriptors of the child components can be "projected" onto the parent component. To a user of the parent component, a projected connector descriptor appears as just another connector of the parent component. Figure 20 is a block diagram illustrating a parent component and a child component. A parent is connected to its children through the IComponentPlugfIComponentJack protocol (parent/child protocol). Each component that is a parent has a connector descriptor specifying the IComponentPlug interface and the IComponentJack reverse interface. Thus, the connector descriptor array includes an entry for the IComponentPIuglIComponentJack protocol for each component that can be a parent component. Each component is ~13~~ro.~~

automatically created with a connector descriptor for the IComponentJack interface and IComponentPlug reverse interface. In this way, any components can be embedded within a parent. The CEList for the descriptor entry for the parent/child protocol contains a connector for each child. Figure 20 shows a parent component 2010 and a child 2020. The parent 2010 comprises component manager 2011 and a DEList with descriptor entries 2012 and 2015. Descriptor entry 2012 supports the parentlchild protocol. The CEList of descriptor entry 2012 contains connectors 2013 and 2014.
The connector 2014 is connected to child 2020. The child 2020 comprises component manager 2021 and a DEList with descriptor entries 2022 and 2025. Descriptor entry 2022 supports the parent/child protocol. The connector 2024 connects to the parent 2010. Descriptor entry 2015 is a projection of descriptor entry 2025 of the child onto the parent. When a descriptor entry is projected from a child onto a parent, a new descriptor entry is added to the parent with an indication that it is a projection. The projected descriptor entry of the child is set to indicate that it is projected. When a connector is extruded from a projection descriptor entry, a connector 2016 is created for the parent. However, as indicated by the dashed lines, a projection connector entry does not provide an IConnector, IJack, or IPlug interface. Rather, when a connector is extruded from a projection descriptor entry, the IConnector interface of the child is returned. The parent invokes a method of the child so that the child can extrude a corresponding connector 2026. If the child is itself a parent and the extruded connector is a projection, then the child's child is invoked to extrude its connector.
The parent and child relationships can be to an arbitrary level of nesting. When a projected connector is extruded, a pointer to projected connector is returned. Thus, connections are established directly to the connector of the child. The IComponentPlug/IComponentJack protocol is an unidirectional protocol. The parent does not provide an implementation of the IComponentPlug interface. Rather, as with any other unidirectional protocol, only the IUnknown interface is implemented.
The IComponentJack interface is provided by the component manager as described above.
The function ComponentCreateChild creates a child component of the specified class for the specified parent and connects the child to the parent.
The parent component should have a full path moniker, and the function sets the parent moniker and this moniker of the child. In a preferred embodiment, a component manager contains a full path moniker, a parent moniker, and a this moniker. The parent moniker is a moniker that identifies the parent of a child. The this moniker is a moniker that identifies a child of the parent. If the component is not a child, then this moniker identifies the component. The full path moniker is the composition of the parent ~134~~.~~
--'1 ~2 moniker with the this moniker. A preferred prototype of the function ComponentCreateChild is STDAPI ComponentCreateChild( struct ComponentManager FAR *pComponentManager, DWORD dwClsContext, void FAR *preserved, REFCLSID rcid, IUnknown FAR * FAR * ppComponentPlug) The parameter pComponentManager is a pointer to the parent component; the parameter dwlClsContext and rcid represent the class id of the child. The function returns a pointer to the IComponentPlug interface provided by the parent.
Figures 21A
and 21B comprise a a flow diagram of the function ComponentCreateChild. In step 2101, if the parent component does not have a full path moniker, then the method returns an error. In step 2102, the method selects a descriptor entry of the parent component for the IComponentPlug interface. In step 2103, if the method does not select a descriptor entry, then the method returns an error. In step 2104, the method extrudes a connector from selected descriptor entry. This connector is used to connect to the child. In step 2105, the method retrieves the IClassFactory interface for the child as specified by the passed class id. In step 2106, the method creates an instance of the child and retrieves its IComponent interface. The methods of the IComponent interface are described below. In step 2107, the method sets the child component to point to its parent component by invoking the method SetParentComponent of the child. In step 2108, the method sets the parent moniker of the child by invoking the method SetParentMoniker of the child. In step 2109, the method creates a component moniker for the child. The component moniker contains the connection id of the extruded connector of the parent to uniquely identify the child within the parent. In step 2110, the method sets the this moniker of the child by invoking the method SetChildMoniker of the child. In step 2111, the method releases the created component moniker.
In step 2112, the method extrudes a connector from the descriptor entry for the IComponentJack/IComponentPlug protocol of the child. In step 2113, the method invokes the function ComponentConnect to connect the plug connector of the parent to the jack connector of the child. In step 2114, the method releases the jack connector of the child and returns.
The function ComponentProjectI7escriptor projects a specified interface of a specified child component onto its parent component. The function creates a 1~
"projection" descriptor entry for the parent and. links it into the DEList.
'The corresponding descriptor entry of the child is set to indicated that it is projected. The projection descriptor entry is set to the specified instance name. A preferred prototype for the function ComponentProjectDescriptor is STDAPI ComponemProjectDescriptor( struct ComponencManager FAR'pComponentManager, IUnknown FAR'pChildIComponentPlug, REFIID riid, LPCTSTR child iname, LPCTSTR my_iname, ULONG cMaxConnectors);
The parameter pComponentManager points to the parent component; the parameter pChildIComponentPlug points to the IComponentPlug interface provided by the parent, the parameters riid and child iname specify the interface id and instance name of the child connector to project; the parameter my_name specifies the instance name for the projection descriptor entry; and the parameter cMaxConnectors specifies the maximum count of connectors for the projection descriptor entry. Figure 22 is a flow diagram of the function ComponentProjectDescriptor. In step 2201, the method retrieves the IConnector interface of the child connector. In step 2202, the method releases the interface. In step 2203, the method selects a descriptor entry of the child with the passed interface id and instance name. In step 2204, if the method does not select a descriptor entry, then the method returns an error. In step 2205, the method selects a descriptor entry of the parent with the passed interface id and new instance name. In step 2206, if the method selected a descriptor entry, then the method returns an error.
In step 2207, the method creates a projection connector entry for the parent.
In step 2208, the method registers the projection with the child to indicate to the child that its descriptor entry is now projected. The method invokes the method RegisterProjection of the IComponent interface of the child. In step 2209, the method links the projection descriptor entry to the DEList of the parent and returns.
A connector is extruded from a projection descriptor entry in an analogous manner to a non-projection descriptor entry. However, the parent notifies the child that a connector is being extruded and a pointer to the IConnector interface of the child is returned. The parent invokes the method NewProjectedConnector of the IComponent interface of the child. This method extrudes a connector for the projected ~~3~~~.

descriptor entry of the child. If projected descriptor entry is itself a projection descriptor entry, then the child's child is notified.
class IComponentaUnknown void SetMoniker(IMoniker FAR *pmiay;
void GetMoniker(IMoniker FAR *FAR *ppmkr)=0;
void SetParentComponent(IComponent FAR *pParentlC}--0;
void SetParentMoniker(IMoniker FAR *pmkParent)---0;
void SetChiIdMoniker(IMoniker FAR *pmkChild)~;
void PassivateConnections(ULONG flagr0;
void NewProjectedConnector(IComponent FAR *pICManifesting, REFIID DescIlD, LPCTSTR lpszName, ULONG FAR *pconnid, IConnector FAR *FAR *ppIConnector)'0;
void DeleteProjectedConnector(REFIID DescflD, LPCTSTR lpszName, ULONG connid}=0;
void RegisterProjection(REFIID riid, LPCTSTR iname, ULONG FAR *pCDflagrO;
void RevokeProjection(REFIID riid, LPCTSTR iname)~;
void DoEagerBindsQ=0;
Code Table 7 defines the IComponent interface that is provided by the component manager. The IComponent interface provides methods to manipulate components. Code Table 8 defines internal state information of the component manager. In the following, the methods of the IComponent interface are described.
class ComponentManager ULONG refcount;
IUnknown FAR'PUnkOuter;
(Unknown aggiu;

~~3~~~.
~S
iComponent FAR *pParent;
DescriptorEntry FAR *pDEList;
LJLONG DErefcount;
const ComponentDEscriptor FAR *pCompDesc;
S IMoniker FAR *pmla~;
IMoniker FAR *pmkThis;
IMoniker FAR *pmkParent;
IUnknown FAR *pComponent;
Figure ~23 is a flow diagram of the method SetMoniker of the IComponent interface. The method SetMoniker is passed a pointer to a moniker and sets the full path moniker (pmkr) of this component to point to the passed moniker. In step 2301, if this component is a child component, then the method returns an error, 1S else the method continues at step 2302. In step 2302, if this component already has a full path moniker (pmkr!=NULL), then the method returns an error, else the method continues at step 2303. In step 2303, the method sets the full path moniker (pmkr) of this component to the passed moniker. In step 2304, the method increments the reference count of the passed moniker and returns.
Figure 24 is a flow diagram of the method GetMoniker of the class ComponentManager. The method GetMoniker returns a pointer to the full path moniker for this component. In step 2401, if this component does not have a full path moniker, then the method returns an error. In step 2402, the method increments the reference count of the full path moniker and returns.
2S Figure 2S is a slow diagram of the method SetParentMoniker of the class ComponentManager. This method sets the parent moniker for this component to the passed moniker. If the component currently has a parent moniker, then the method releases the current parent moniker. The method also sets the parent moniker of all child components. In step 2501, if this component has a parent moniker (pmkParent), then the method releases the parent moniker in step 2502. In step 2503, if the component has a full path moniker (pmkr), then the method releases the full path moniker in step 2504. In step 2SOS, the method sets the parent moniker of this component to the passed moniker. In step 2506, the method increments the reference count of the passed moniker. In step 2507, if the component does not have a this 3S moniker (pmkThis), then the method returns. In step 2508, the method sets the full path moniker to the composition of the parent moniker and the this moniker by invoking the method ComposeWith of the parent moniker. In step 2509, the method ~13~~~ ~i invokes the method Rename to set the parent moniker of each child component and then returns.
Figure 26 is a flow diagram of the private method Rename of the IComponent interface. The method sets the parent moniker of each child component of this component to the passed moniker. The method also disconnects connectors.
In step 2601, the method selects the descriptor entry in the DEList for the connector to the child components. In step 2602, if the descriptor entry is selected, then this component may have child components and the method continues at step 2603, else the method continues at step 2606. In step 2603, the method selects the next connector entry for the selected descriptor entry, starting with the first connector entry in the CEList. In step 2604, if all the connector entries have been selected, then the method continues at step 2606, else the method continues at step 2605. In step 2605, the method sets the parent moniker of the child component connected to the selected connector entry by invoking the method SetParentMoniker of the child component. The method then loops to step 2603 to select the next connector entry. In steps 2606 through 2611, the method loops disconnecting connectors. In step 2606, the method selects the next descriptor entry in the DEList that is not a projection. In step 2607, the if all the descriptor entries have been selected, then the method returns. In step 2608, the method selects the next connector entry in the CEList for the selected descriptor entry that is connected, starting with the first connector entry. In step 2609, if all the connector entries have been selected, then the method loops to step 2606 to select the next descriptor entry, else the method continues at step 2610. In step 2610, the method releases the reverse interface of the selected connector entry and sets the reverse interface to NULL. In step 2611, the method releases the reverse interface moniker of the select connector entry, sets the pointer to the reverse interface moniker to NULL, and loops to step 2608, to select the next connector entry.
Figure 27 is a flow diagram of the method SetChildMoniker of the IComponent interface. The method SetChildMoniker sets the this moniker to the passed moniker. The method also invokes the methad Rename of the component to rename its child components. In step 2701, if this component has a this moniker, then the method returns an error a component can only have its this moniker set once. In step 2702, if this component has a full path moniker, then this component is not a child component and the method returns an error. In step 2703, if the component does not have a parent moniker, then the method returns an error because the parent moniker should have been set when this child component was created. In step 2704, the method sets the this moniker (pmkThis) of this component to the passed moniker. In step 2705, the method increments the reference count of the passed moniker. In step 2706, the method sets the full path moniker of the component to the composition of the parent moniker and the this moniker by invoking the method ComposeWith of the parent moniker. In step 2707, the method invokes the method Rename of this component to rename its child components and then returns.
Figure 28 is a flow diagram of the method SetParentComponent of the IComponent interface. The method SetParentComponent sets the parent (pParent) of this component to point to the passed component. This method does not increase the reference count of the parent to avoid circular references. In step 2801, if this component has a parent component or the passed component is NULL, then the method returns an error. In step 2802, the method sets the parent of this component to the passed component and~returns.
Figure 29 is a flow diagram of the method DoEagerBinds of the IComponent interface. The method binds the stubs for all connector entries that are not a projection, for which eager bind is specified, and that is not already connected. In step 2901, the method selects the next descriptor entry of this component, starting with the first. In step 2902, if all the descriptor entries have already been selected, then the method returns, else the method continues at step 2903. In step 2903, if the selected descriptor entry is not a projection, then the method continues at 2904, else the method loops to step 2901 to select the next descriptor entry. In step 2904, if the selected descriptor entry indicates eager bind, then the method continues at step 2905, else the method loops to step 2901 to select the next descriptor entry. In step 2905, the method selects the next connector entry for the selected descriptor entry, starting with the first.
In step 2906, if ail the connector entries have akeady been selected, then the method loops to step 2901 to select the next descriptor entry, else the method continues at step 2907. In step 2907, if the selected connector entry is connected, then tlxe method loops to step 2905 to select the next connector entry, else the method continues at step 2908.
In step 2908, the method invokes the method BindStub of the IConnector interface of the selected connector entry and loops to step 2905 to select the next connector entry.
Code Table 2A contains a definition of the component descriptor. In the following, the field of the component descriptor is described.
ComponentDescriptot~.:cConnectors This field indicates the number of connector descriptors in the array of connector descriptors.
ComponentDescriptor::pConnDesc This field is a pointer to the connector descriptor array.

CotnponentDescriptor::Create This field provides a pointer to a function provided by the user component that is invoked when the component is created. The user component is written to be aggregatable; the controlling IUnknown passed to this function is provided by the component manager. The component manager aggregates the user component into itself. The user component is passed a pointer to the component manager which can be used to obtain certain services. The user component provides an implementation of the IPersist interface. If the user component is to have persistent state, it also provides an implementation of the IPersistStorage interface. In this way, the component managez can ask the user component to persist itself.
Code Table 2B contains a description of a connector descriptor. In the following, the field of the connector descriptor is described.
ConnectorDescriptor::piid The interface id of the protocol that user component provides.
ConnectorDescriptor::piidm The reverse interface id of the protocol.
ConnectorDescriptor::iname The instance name of the protocol. This name is used to distinguish between multiple implementations of the same protocol provided by a user compound.
ConnectorDescriptor::flag Specifies certain control information about the connector.
CNNCTR PLUG
This flag indicates that the user component implements the plug interface of the protocol.
CNNCTR JACK
This flag indicates that the user component implements the jack interface ofthe protocol.
CiVNCTR REVIOPT

2~3~~~.~~

This flag indicates that the reverse interface on the connection is optional. This might be used if such an interface is merely informational, or notifies the other component of certain events of which the other component may not be interested in.
CNNCTR EAGERBIND
This flag indicates that the connector is to bind to the reverse interface as soon as a connection is established, referred to as eager binding. This overrides the default lazy binding to interfaces.
CNNCTR REVIPTR
This flag indicates that the user component contains a reverse interface pointer.

This flag indicates that the connector is not to persist when all references to it go away. Such connectors are saved when a component is saved. These connectors are kept alive strictly by virtue of being referenced. Such connectors can be created on-demand by clients of a component, and monikers to them may be created.
Typically, some service type component, which never initiates a connection on a bidirectional protocol, or which provides the implementation on a unidirectional protocol would use these.
CNNCTR PRIVATE
This flag indicates that the protocol should not be projected or extruded to the outside of a component, but is only available for connecting from the component to a child component. Such a connector is not listed in descriptor enumerators or connector enumerators that are created from outside the component, but will be seen by such when they are created from within the component.
CNNCTR AGGREGATE
This flag directs the component manager to aggregate the interface of this connector into the component manager and not to assume that the only interface on the connector is the one given in the connector descriptor. When an interface other than the one specified by piid is requested, the component manager invokes the IUnknown of the reverse interface.

~13~~1p :~o ConnectorDescriptor::cMaxConnectors This field specifies an initial limit on how many instances of this connector may be extruded from the component at any one time. The component may adjust this value at run-time. The adjusted value is persistent across subsequent activations of the component, and the value specified here is just the default for a newly created instance of the component. The value ULONG MAX specifies that there is no limit to the number of instances that may be extruded.
GonnectorDescriptor::Rev(facePtrOff This field contains the offset within the user component (from the interface) of the reverse interface pointer.
ConnectorDescriptor::OutStubf These fields contain pointers to stub class factories for the particular protocol.
ConnectorDescriptor::Create This field contains a pointer to a function in the user component that returns a pointer to the interface. This function is invoked when a connector is extruded. This function returns a pointer to the interface.
ConnectorDescriptor::Delete This field contains a pointer to a fimction provided by the user component which is invoked when a connector is to be deleted.
ConnectorDescriptor::Connect This field contains a pointer to a function provided by the user component that is invoked when a connection occurs. This provides an opportunity for the user component to do any initialization. The plug end of a connection is notified first, and then the jack end. Protocols are typically designed in such a way that the plug end may wish to issue some controlling calls during its connection notification. The notification comes after the connection is established, and the interfaces are ready for use.
ConnectorDescriptor::Disconnect This field contains a pointer to a function provided by the user component that is invoked when a connection is disconnected. This provides an ~13~~:~u opportunity to do any necessary cleanup. The plug end is notified first, and then the jack end. After both ends have been notified of the disconnection, the actual disconnect occurs.
ConnectorDescriptor::Load and ConnectorDescriptor::Save These fields contain pointers to functions provided by the user component that are invoked to load and save information. A user component may save state information associated with a connection across activations of the component.
Figure 30 is a block diagram illustrating a sample system using the present invention. The computer 3001 is connected to display device 3002, an input device 3003, and a persistent storage 3004. The computer 3001 includes a central processing unit 3008, a visual progiamming manager 3005, available components 3006, and selected components 3007. The visual programming manager manages the creation of visual programs. The visual programming manager displays a lists of available components on the display device. A programmer using the input device selects which listed components to include in a program. The visual programming manager creates an instance of each selected component. After the components are selected, then the programmer specifies how to interconnect the components. Each component provides a list of protocols that it supports. The visual programming manager displays the lists on the display device. The programmer specifies two components to connect through a protocol. The visual programming manager directs the specified components to extrude connectors for the protocol. The visual programming manager then directs the extruded connectors to connect.
Figure 31 is a diagram of the display of a sample visual program. The visual program displays a scroll bar 3101 and a display box 3102. The display box display a numeric value between 0 and 100 that corresponds to the position of the scroll bar thumb. When the thumb is moved by a user, the value in the display box is automatically updated. Conversely, when a new value is entered into the display box by a user, the thumb is automatically moved accordingly. To create the visual program, a programmer selects a scroll' bar component and a display box component and then connects the components.
Figure 32 is a block diagram of the instantiated components. The scrollbar component 3201 is shown with jack 3202 extruded. The display box component 3203 is shown with plug 3204 extruded. The jack 3202 and 3204 are connected. In operation, the scroll bar component effects the display of scroll bar 3101, and the display box component 3203 effects the display of display box 3102.
When the thumb is moved, the operating system sends a message to the scroll bar component. In response to the message, the scroll bar component multicasts the message through its extruded jack. The display box component receives the message and changes its display box accordingly. Similarly, when a user enters a new value into the display box, the operating system sends a message to the display box component. In response, the display box component multicasts the message to the jacks connected through the protocol. The scroll bar component receives the message and changes the thumb accordingly.
Although the present invention has been described in terms of a preferred embodiment, it is not intended that the invention be limited to these embodiments. Modifications within the spirit of the invention will be apparent to those skilled in the art. The scope of the present invention is defined by the claims that follow.

Claims (21)

Claims
1. A method in a computer system for managing interconnecting a first component to a second component, the first component having a first interface for providing services, the second component having a second interface for providing services, the method comprising the computer implemented steps of:
aggregating the first component into a first instance of a component manager and aggregating the second component into a second instance of the component manager;
under control of the first instance of the component manager, receiving from the first component a pointer to the first interface;
receiving a request to instantiate a connector object for the first interface;
and in response to receiving the request, instantiating a first connector object and storing in the first connector object the pointer to the first interface;
under control of the second instance of the component manager, receiving from the second component a pointer to the second interface;
receiving a request to instantiate a connector object for the second interface; and in response to receiving the request, instantiating a second connector object and storing in the second connector object the pointer to the second interface; and upon receiving a request to connect the first connector object to the second connector object, retrieving from the first connector object the pointer to the first interface and storing the retrieved pointer to the first interface in the second component, whereby the second component can access the services of the first interface through the pointer to the first interface stored in the second component; and retrieving from the second connector object the pointer to the second interface and storing the retrieved pointer to the second interface in the first component, whereby the first component can access the services of the second interface through the pointer to the second interface stored in the first component.
2. A computer readable media having computer readable program code of a component manager for managing the interconnection of components comprising:
computer readable program code of an aggregator for aggregating a first user component into an instance of the component manager to form a first aggregate component, the first user component providing a first user component interface;

computer readable program code of a retrieving module for retrieving from the first user component an identification of the first user component interface, a pointer to the first user component interface, and a reference to a location in the first user component at which to store a pointer to a second user component interface of a second user component in a second aggregate component, the second aggregate component being an aggregate of a second instance of the component manager and the second user component;
computer readable program code of a sending module for sending to the second aggregate component, in response to a request to connect the first aggregate component to the second aggregate component, the pointer to the first user component interface of the first user component; and computer readable program code of a receiving module for receiving from the second aggregate component the pointer to the second user component interface of the second user component and is for storing the received pointer to the second user component interface in the location of the first user component indicated by the retrieved reference wherein the first aggregate component is connected to the second aggregate component by using the sending module of the first aggregate component send to the second aggregate component the pointer to the first user component interface and by using the receiving module of the first aggregate component to receive the pointer to the second user component interface and to store the received as pointer in the location of the first user component indicated by the reference retrieved by the retrieving module of the first user component interface, and wherein the first user component accesses the second user component interface using the stored pointer.
3 . The computer readable media of claim 2 wherein the retrieving module retrieves from the first user component pointers to a plurality of user component interfaces so that connections can be established to the first user component through each of the plurality of user component interfaces of the first user component.
4. The computer readable media of claim 2 wherein the sending module sends the pointer to the first user component interface to a plurality of second aggregate components so that connections can be established with each of the plurality of second aggregate components through the first user component interface.
5. The computer readable media of claim 2 including a computer readable program code of a multicasting stub for controlling accessing of a second user component interface of each of a plurality of second aggregate components connected through the first user component interface, the second user component interfaces being provided by each of a plurality of second user components.
6. The computer readable media of claim 2 wherein the pointer to the first user component interface is a pointer to a first user component interface stub, the first user component interface stub for binding to the first user component interface and replacing the pointer stored by the receiving module with the pointer to the first user component interface.
7. The computer readable media of claim 2 wherein the first user component provides a plurality of user component interfaces and including an enumerator for enumerating the plurality of user component interfaces provided by the first user component.
8. The computer readable media of claim 2 wherein the first aggregate component is connected to a plurality of second aggregate components and including an enumerator for enumerating the plurality of second aggregate components.
9. The computer readable media of claim 2 wherein the first user component is itself an aggregate component of a child user component and an instance of the component manager and the first user component interface is provided by the child user component.
10. A method in a computer system for interconnecting two components, the method comprising the computer-implemented steps of:
creating a first component by aggregating a first instance of a component manager with a first user component, the component manager for managing the interconnection of components, the first user component having a first user component interface;
creating a second component by aggregating a second instance of the component manager with a second user component;
under control of the first instance of the component manager, creating a first connector object, the first connector object having a pointer to the first user component interface;
under the control of the second instance of the component manager, creating a second connector object having a reference to a location in the second user component; and connecting the first component to the second component by specifying the first connector object and the second connector object, by retrieving the pointer to the first user component interface from the first connector object, by retrieving the reference to the location in the second user component from the second connector object, and by storing the retrieved pointer in the referenced location wherein the second user component can access services of the first user component interface through the pointer stored at the referenced location.
11. The method of claim 10 wherein the second user component has a second user component interface and the second connector object has a pointer to the second user component interface, wherein the first connector object has a reference to a location in the first user component, and wherein the step of connecting includes connecting by retrieving the reference to the location in the first user component from the first connector object, by retrieving the reference to the location in the first user component from the first connector object, and by storing the retrieved pointer in the referenced location, wherein the first user component can access service of the second user component interface through the pointer stored at the referenced location.
12. The method of claim 10 wherein the first connector object includes an identification of the first user component interface and the second connector object contains an identification of the second user component interface and the step of connecting includes determining whether the identification of the first user component interface is compatible with the identification of the second user component interface.
13. The method of claim 10 wherein the step of creating a first connector object includes the step of invoking a create call back routine of the first user component to notify the first user component of the creating of file first connector object.
14. The method of claim 10 wherein the step of connecting the first component to the second component further includes the steps of requesting that the first connector object connect to the second connector object;
after requesting the first connector object to connect to the second connector object, requesting the second connector object to connect to the first connector object and to notify the second user component of the connection; and after requesting the second connector object to connect to the first connector object, requesting the first connector object to notify the first user component of the connection.
I5. An article of manufacture comprising a machine-readable medium having computer readable program code stored thereon which when executed by a processor cause the processor to perform operations comprising:
interconnecting a first component to a second component, the first component having a first interface for providing services, the second component having a second interface for providing seances;
generating a pointer to the first interface from the first component;
instantiating a first connector object and storing in the first connector object the pointer to the first interface;
generating from the second component a pointer to the second interface;
instantiating a second connector object and storing in the second connector object the pointer to the second interface;
retrieving from the first connector object the pointer to the first interface and storing the retrieved pointer to the first interface in the second component, whereby the second component can access the services of the first interface through the pointer to the first interface stored in the second component; and retrieving from the second connector object the pointer to the second interface and storing the retrieved pointer to the second interface in the first component, whereby the first component can access the services of the second interface through the pointer to the second interface stored in the first component.
16. The article of manufacture of claim 15 further comprising:
aggregating the first component into a first instance of a component manager;
and aggregating the second component into a second instance of the component manager.
17. The article of manufacture of claim 16 wherein the first instance of the component manager receives a request to instantiate a connector object for the first interface.
18. The article of manufacture of claim 16 wherein the second instance of the component manager receives a request to instantiate a connector object for the second interface.
19. An article of manufacture comprising a machine readable medium having computer readable program code stored thereon which when executed by a processor cause the processor to perform operations comprising:
computer readable program code of a component manager;
computer readable program code of an aggregator for aggregating a first user component into an instance of the component manager;
computer readable program code of a retrieving module for retrieving from the first user component an identification of the first user component interface, a pointer to the first user component interface, and a reference to a location in the first user component at which to store a pointer to a second user component interface of a second user component in a second aggregate component, the second aggregate component being an aggregate of a second instance of the component manager and the second user component;
computer readable program code of a sending module for sending to the second aggregate component, in response to a request to connect the first aggregate component to the second aggregate component, the pointer to the first user component interface of the first user component; and computer readable program code of a receiving module for receiving from the second aggregate component the pointer to the second user component interface of the second user component and is for storing the received pointer to the second user component interface in the location of the first user component indicated by the retrieved reference wherein the first aggregate component is connected to the second aggregate component by using the sending module of the first aggregate component send to the second aggregate component the pointer to the first user component interface and by using the receiving module of the first aggregate component to receive the pointer to the second user component interface and to store the received as pointer in the location of the first user component indicated by the reference retrieved by the retrieving module of the first user component interface, and wherein the first user component accesses the second user component interface using the stored pointer.
20. An article of manufacture comprising a machine-readable medium having computer readable program code stored thereon which when executed by a processor cause the processor to perform operations comprising:
creating a first component by aggregating a first instance of a component manager with a first user component, the component manager for managing the interconnection of components, the first user component having a first user component interface;
creating a second component by aggregating a second instance of the component manager with a second user component;
under control of the first instance of the component manager, creating a first connector object, the first connector object having a pointer to the first user component interface;
under the control of the second instance of the component manager, creating a second connector object having a reference to a location in the second user component; and connecting the first component to the second component by specifying the first connector object and the second connector object, by retrieving the pointer to the first user component interface from the first connector object, by retrieving the reference to the location in the second user component from the second connector object, and by storing the retrieved pointer in the referenced location wherein the second user component can access services of the first user component interface through the pointer stored at the referenced location.
21. The article of manufacture of claim 10 wherein the step of connecting the first component to the second component further includes the steps of:
requesting that the first connector object connect to the second connector object;
after requesting the first connector object to connect to the second connector object, requesting the second connector object to connect to the first connector object and to notify the second user component of the connection; and after requesting the second connector object to connect to the first connector object, requesting the first connector object to notify the first user component of the connection.
CA002134616A 1993-11-05 1994-10-28 Method and system for management of component connections Expired - Fee Related CA2134616C (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US08/147,683 US5517645A (en) 1993-11-05 1993-11-05 Method and system for interfacing components via aggregate components formed by aggregating the components each with an instance of a component manager
US08/147,683 1993-11-05

Publications (2)

Publication Number Publication Date
CA2134616A1 CA2134616A1 (en) 1995-05-06
CA2134616C true CA2134616C (en) 2004-01-27

Family

ID=22522490

Family Applications (1)

Application Number Title Priority Date Filing Date
CA002134616A Expired - Fee Related CA2134616C (en) 1993-11-05 1994-10-28 Method and system for management of component connections

Country Status (5)

Country Link
US (2) US5517645A (en)
EP (1) EP0652512B1 (en)
JP (2) JP3429873B2 (en)
CA (1) CA2134616C (en)
DE (1) DE69424744T2 (en)

Families Citing this family (112)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69309485T2 (en) * 1992-11-13 1997-07-10 Microsoft Corp METHOD FOR DISTRIBUTING INTERFACE POINTERS FOR REMOTE PROCEDURE CALLS
US5517645A (en) * 1993-11-05 1996-05-14 Microsoft Corporation Method and system for interfacing components via aggregate components formed by aggregating the components each with an instance of a component manager
US5742848A (en) * 1993-11-16 1998-04-21 Microsoft Corp. System for passing messages between source object and target object utilizing generic code in source object to invoke any member function of target object by executing the same instructions
US5485617A (en) 1993-12-13 1996-01-16 Microsoft Corporation Method and system for dynamically generating object connections
US6813769B1 (en) 1997-10-28 2004-11-02 Microsoft Corporation Server application components with control over state duration
US5922054A (en) * 1994-08-19 1999-07-13 Canon Kabushiki Kaisha System for managing external applications and files
EP0702291B1 (en) * 1994-09-19 2002-04-03 Sun Microsystems, Inc. Method and mechanism for invocation on objects with interface inheritance
WO1996009585A1 (en) * 1994-09-21 1996-03-28 Wang Laboratories, Inc. A link manager for managing links integrating data between application programs
US6249822B1 (en) 1995-04-24 2001-06-19 Microsoft Corporation Remote procedure call method
US5740455A (en) * 1995-05-16 1998-04-14 Apple Computer, Inc. Enhanced compound document processing architectures and methods therefor
US6385645B1 (en) * 1995-08-04 2002-05-07 Belle Gate Investments B.V. Data exchange system comprising portable data processing units
US5848273A (en) * 1995-10-27 1998-12-08 Unisys Corp. Method for generating OLE automation and IDL interfaces from metadata information
US8037158B2 (en) 1995-11-13 2011-10-11 Lakshmi Arunachalam Multimedia transactional services
US8271339B2 (en) * 1995-11-13 2012-09-18 Lakshmi Arunachalam Method and apparatus for enabling real-time bi-directional transactions on a network
US7930340B2 (en) * 1995-11-13 2011-04-19 Lakshmi Arunachalam Network transaction portal to control multi-service provider transactions
US6865610B2 (en) 1995-12-08 2005-03-08 Microsoft Corporation Wire protocol for a media server system
US6339794B2 (en) * 1995-12-08 2002-01-15 Microsoft Corporation Wire protocol for a media server system
US6226692B1 (en) * 1995-12-15 2001-05-01 Object Dynamics Corporation Method and system for constructing software components and systems as assemblies of independent parts
US5961588A (en) * 1996-02-22 1999-10-05 Alcatel Usa Sourcing, L.P. Handling of commands passed between the server and client stations of a telecommunications system
US5999986A (en) * 1996-05-01 1999-12-07 Microsoft Corporation Method and system for providing an event system infrastructure
DE59604238D1 (en) * 1996-08-20 2000-02-24 Alcatel Sa Procedure for managing the naming of objects
EP0825506B1 (en) 1996-08-20 2013-03-06 Invensys Systems, Inc. Methods and apparatus for remote process control
US5812857A (en) * 1996-08-28 1998-09-22 Extended Systems, Inc. Field configurable embedded computer system
US5944829A (en) * 1996-09-30 1999-08-31 Intel Corporation Adjusting software characteristics by user interface based upon battery level and the amount of time the user wants the battery to last
US6757729B1 (en) * 1996-10-07 2004-06-29 International Business Machines Corporation Virtual environment manager for network computers
US5794256A (en) * 1996-12-12 1998-08-11 Microsoft Corporation Pointer swizzling facility using three-state references to manage access to referenced objects
US6038593A (en) * 1996-12-30 2000-03-14 Intel Corporation Remote application control for low bandwidth application sharing
GB2335520A (en) * 1997-01-28 1999-09-22 British Telecomm Managing operation of servers in a distributed computing environment
US5842020A (en) * 1997-01-31 1998-11-24 Sun Microsystems, Inc. System, method and article of manufacture for providing dynamic user editing of object oriented components used in an object oriented applet or application
US6496870B1 (en) 1997-01-31 2002-12-17 Sun Microsystems, Inc. System, method and article of manufacture for collaboration with an application
US5913065A (en) * 1997-01-31 1999-06-15 Sun Microsystems, Inc. System, method and article of manufacture for creating hierarchical folder components for use in a java application or applet
US5884078A (en) 1997-01-31 1999-03-16 Sun Microsystems, Inc. System, method and article of manufacture for creating an object oriented component having multiple bidirectional ports for use in association with a java application or applet
JPH10254689A (en) * 1997-03-14 1998-09-25 Hitachi Ltd Application constitution design supporting system for client/server system
FR2762950B1 (en) * 1997-05-02 2000-08-04 Alsthom Cge Alcatel METHOD FOR TRANSMITTING A NOTIFICATION IN A NETWORK WITH DISTRIBUTED APPLICATIONS INCLUDING MULTIPLE NOTIFICATION SERVICES AND NETWORK FOR IMPLEMENTING IT
US6144992A (en) * 1997-05-09 2000-11-07 Altiris, Inc. Method and system for client/server and peer-to-peer disk imaging
US6125383A (en) * 1997-06-11 2000-09-26 Netgenics Corp. Research system using multi-platform object oriented program language for providing objects at runtime for creating and manipulating biological or chemical data
US5978579A (en) * 1997-08-12 1999-11-02 International Business Machines Corporation Architecture for customizable component system
US6093215A (en) * 1997-08-12 2000-07-25 International Business Machines Corporation Method and apparatus for building templates in a component system
US5970252A (en) * 1997-08-12 1999-10-19 International Business Machines Corporation Method and apparatus for loading components in a component system
US6195794B1 (en) 1997-08-12 2001-02-27 International Business Machines Corporation Method and apparatus for distributing templates in a component system
US6182279B1 (en) 1997-08-12 2001-01-30 International Business Machines Corporation Method and apparatus for storing templates in a component system
US6304894B1 (en) 1997-09-22 2001-10-16 Hitachi, Ltd. Proxy server and recording medium storing a proxy server program
EP0915419A3 (en) 1997-10-06 2003-11-12 Sun Microsystems, Inc. Remote object access
US6317796B1 (en) * 1997-10-06 2001-11-13 Sun Microsystems, Inc. Inline database for receiver types in object-oriented systems
US6694506B1 (en) * 1997-10-16 2004-02-17 International Business Machines Corporation Object oriented programming system with objects for dynamically connecting functioning programming objects with objects for general purpose operations
US6151700A (en) * 1997-10-20 2000-11-21 International Business Machines Corporation Object oriented distributed programming system for computer controlled networks with selective capture of program property data identifying a particular program version
US7076784B1 (en) 1997-10-28 2006-07-11 Microsoft Corporation Software component execution management using context objects for tracking externally-defined intrinsic properties of executing software components within an execution environment
US5958004A (en) 1997-10-28 1999-09-28 Microsoft Corporation Disabling and enabling transaction committal in transactional application components
US6631425B1 (en) 1997-10-28 2003-10-07 Microsoft Corporation Just-in-time activation and as-soon-as-possible deactivation or server application components
US6134594A (en) 1997-10-28 2000-10-17 Microsoft Corporation Multi-user, multiple tier distributed application architecture with single-user access control of middle tier objects
US5963961A (en) * 1997-11-25 1999-10-05 International Business Machines Corporation Database reconstruction using embedded database backup codes
US6393472B1 (en) 1997-12-10 2002-05-21 At&T Corp. Automatic aggregation of network management information in spatial, temporal and functional forms
US6012067A (en) * 1998-03-02 2000-01-04 Sarkar; Shyam Sundar Method and apparatus for storing and manipulating objects in a plurality of relational data managers on the web
US7809138B2 (en) * 1999-03-16 2010-10-05 Intertrust Technologies Corporation Methods and apparatus for persistent control and protection of content
US7233948B1 (en) * 1998-03-16 2007-06-19 Intertrust Technologies Corp. Methods and apparatus for persistent control and protection of content
US6279156B1 (en) * 1999-01-26 2001-08-21 Dell Usa, L.P. Method of installing software on and/or testing a computer system
US6023579A (en) * 1998-04-16 2000-02-08 Unisys Corp. Computer-implemented method for generating distributed object interfaces from metadata
US6526416B1 (en) 1998-06-30 2003-02-25 Microsoft Corporation Compensating resource managers
US6795853B1 (en) 1998-06-30 2004-09-21 International Business Machines Corporation Integration of additional computer components into a computer operation through attribute enabled interactive selections presented in composite lists available to the user in a variety of display screens
US6425017B1 (en) 1998-08-17 2002-07-23 Microsoft Corporation Queued method invocations on distributed component applications
US6442620B1 (en) 1998-08-17 2002-08-27 Microsoft Corporation Environment extensibility and automatic services for component applications using contexts, policies and activators
US6256780B1 (en) 1998-09-10 2001-07-03 Microsoft Corp. Method and system for assembling software components
US6564368B1 (en) * 1998-10-01 2003-05-13 Call Center Technology, Inc. System and method for visual application development without programming
US6385724B1 (en) 1998-11-30 2002-05-07 Microsoft Corporation Automatic object caller chain with declarative impersonation and transitive trust
US6574736B1 (en) 1998-11-30 2003-06-03 Microsoft Corporation Composable roles
US6487665B1 (en) 1998-11-30 2002-11-26 Microsoft Corporation Object security boundaries
US6397384B1 (en) * 1998-12-18 2002-05-28 Adobe Systems Incorporated Run-time addition of interfaces
US6829770B1 (en) 1999-02-23 2004-12-07 Microsoft Corporation Object connectivity through loosely coupled publish and subscribe events
US6748455B1 (en) 1999-02-23 2004-06-08 Microsoft Corporation Object connectivity through loosely coupled publish and subscribe events with filtering
FR2792435B1 (en) * 1999-04-15 2001-07-13 Cit Alcatel METHOD FOR MODIFYING A PROTOCOL BETWEEN DISTRIBUTED OBJECTS
US6453460B1 (en) * 1999-04-26 2002-09-17 Hewlett-Packard Company Computer system with single processing environment for executing multiple application programs
US7089530B1 (en) * 1999-05-17 2006-08-08 Invensys Systems, Inc. Process control configuration system with connection validation and configuration
AU5273100A (en) * 1999-05-17 2000-12-05 Foxboro Company, The Methods and apparatus for control configuration with versioning, security, composite blocks, edit selection, object swapping, formulaic values and other aspects
US6560770B1 (en) * 1999-05-25 2003-05-06 Oracle Corporation Extending the attributes of an application generated using a fourth generation programming tool
DE69942620D1 (en) * 1999-06-10 2010-09-02 Belle Gate Invest B V DEVICE FOR SAVING DIFFERENT VERSIONS OF DATA SETS IN SEPARATE DATA AREAS IN A MEMORY
US6788980B1 (en) 1999-06-11 2004-09-07 Invensys Systems, Inc. Methods and apparatus for control using control devices that provide a virtual machine environment and that communicate via an IP network
US6421682B1 (en) * 1999-07-26 2002-07-16 Microsoft Corporation Catalog management system architecture having data table objects and logic table objects
US7337174B1 (en) 1999-07-26 2008-02-26 Microsoft Corporation Logic table abstraction layer for accessing configuration information
US6466943B1 (en) * 1999-07-26 2002-10-15 Microsoft Corporation Obtaining table objects using table dispensers
US6564377B1 (en) 1999-07-26 2003-05-13 Microsoft Corporation Self-describing components within a software catalog
US6513112B1 (en) 1999-07-26 2003-01-28 Microsoft Corporation System and apparatus for administration of configuration information using a catalog server object to describe and manage requested configuration information to be stored in a table object
US6377960B1 (en) 1999-07-26 2002-04-23 Microsoft Corporation Transactional configuration store and runtime versus administration isolation with version snapshots and aging
US6598037B1 (en) 1999-07-26 2003-07-22 Microsoft Corporation Data table object interface for datastore
WO2001046804A1 (en) * 1999-08-16 2001-06-28 Z-Force Corporation System of reusable software parts for implementing concurrency and hardware access, and methods of use
US6748555B1 (en) * 1999-09-09 2004-06-08 Microsoft Corporation Object-based software management
US6970903B1 (en) * 1999-10-29 2005-11-29 Intel Corporation Distributed component system management using machine-independent activation requests
AU777437B2 (en) * 1999-12-07 2004-10-14 Sun Microsystems, Inc. Secure photo carrying identification device, as well as means and method for authenticating such an identification device
US6920636B1 (en) * 1999-12-15 2005-07-19 Microsoft Corporation Queued component interface passing for results outflow from queued method invocations
US7389246B1 (en) 2000-02-15 2008-06-17 Insweb Corporation Insurance rating calculation software component architecture
US6614453B1 (en) 2000-05-05 2003-09-02 Koninklijke Philips Electronics, N.V. Method and apparatus for medical image display for surgical tool planning and navigation in clinical environments
US7085805B1 (en) * 2000-07-07 2006-08-01 Sun Microsystems, Inc. Remote device management in grouped server environment
US7828218B1 (en) 2000-07-20 2010-11-09 Oracle America, Inc. Method and system of communicating devices, and devices therefor, with protected data transfer
US6925632B2 (en) * 2001-03-08 2005-08-02 Martin Shiu System for configuration programming
EP1246059B1 (en) * 2001-03-26 2006-08-30 Sun Microsystems, Inc. Dynamic interface aggregation on demand
WO2002101564A1 (en) * 2001-06-12 2002-12-19 Tops Systems Corporation Mutiprocessor system, method for designing the same, and multiprocessor system described in hardware describing language
DE10157633A1 (en) * 2001-11-26 2003-08-28 Siemens Ag Medical system architecture with a component-oriented architecture for diagnosis and documentation
US20030182426A1 (en) * 2002-03-21 2003-09-25 Sun Microsystems, Inc. Apparatus and method of lazy connection transaction enlistment
US20040034860A1 (en) * 2002-08-15 2004-02-19 Microsoft Corporation Dynamically extensible application program framework including message and notification routing
CN1264090C (en) * 2002-12-31 2006-07-12 上海科泰世纪科技有限公司 Packaging method for intelligent pointer of calling structure object function
CA2438362C (en) * 2003-08-26 2011-05-31 John William Comeau A method and system for synchronizing a client user interface with server backend
US7681184B1 (en) 2004-05-24 2010-03-16 Borland Software Corporation System and methodology for cross language type system compatibility
US7499899B2 (en) * 2004-07-02 2009-03-03 Northrop Grumman Corporation Dynamic software integration architecture
US7636888B2 (en) * 2005-03-15 2009-12-22 Microsoft Corporation Verifying compatibility between document features and server capabilities
CN104407518B (en) 2008-06-20 2017-05-31 因文西斯系统公司 The system and method interacted to the reality and Simulation Facility for process control
US8463964B2 (en) 2009-05-29 2013-06-11 Invensys Systems, Inc. Methods and apparatus for control configuration with enhanced change-tracking
US8127060B2 (en) 2009-05-29 2012-02-28 Invensys Systems, Inc Methods and apparatus for control configuration with control objects that are fieldbus protocol-aware
US20140309970A1 (en) * 2013-04-11 2014-10-16 The Boeing Company Managing a model having an object cycle
WO2015108748A1 (en) 2014-01-17 2015-07-23 Fair Isaac Corporation Cloud-based decision management platform
US10037187B2 (en) * 2014-11-03 2018-07-31 Google Llc Data flow windowing and triggering
US11650816B2 (en) 2014-11-11 2023-05-16 Fair Isaac Corporation Workflow templates for configuration packages
US10162630B2 (en) 2014-11-11 2018-12-25 Fair Isaac Corporation Configuration packages for software products
US11521137B2 (en) 2016-04-25 2022-12-06 Fair Isaac Corporation Deployment of self-contained decision logic

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4800488A (en) * 1985-11-12 1989-01-24 American Telephone And Telegraph Company, At&T Bell Laboratories Method of propagating resource information in a computer network
AU628264B2 (en) * 1990-08-14 1992-09-10 Oracle International Corporation Methods and apparatus for providing a client interface to an object-oriented invocation of an application
DE69126857T2 (en) * 1991-01-18 1998-01-08 Ibm Object-oriented programming platform
US5307490A (en) * 1992-08-28 1994-04-26 Tandem Computers, Inc. Method and system for implementing remote procedure calls in a distributed computer system
US5315703A (en) * 1992-12-23 1994-05-24 Taligent, Inc. Object-oriented notification framework system
CA2128387C (en) * 1993-08-23 1999-12-28 Daniel F. Hurley Method and apparatus for configuring computer programs from available subprograms
US5517645A (en) * 1993-11-05 1996-05-14 Microsoft Corporation Method and system for interfacing components via aggregate components formed by aggregating the components each with an instance of a component manager

Also Published As

Publication number Publication date
JP2002318690A (en) 2002-10-31
JP4027679B2 (en) 2007-12-26
EP0652512A2 (en) 1995-05-10
DE69424744T2 (en) 2000-09-21
EP0652512A3 (en) 1995-08-16
EP0652512B1 (en) 2000-05-31
JP3429873B2 (en) 2003-07-28
CA2134616A1 (en) 1995-05-06
US5517645A (en) 1996-05-14
DE69424744D1 (en) 2000-07-06
US5794038A (en) 1998-08-11
JPH07182172A (en) 1995-07-21

Similar Documents

Publication Publication Date Title
CA2134616C (en) Method and system for management of component connections
JP4070248B2 (en) Method and system for dynamically generating object connections
EP0817101B1 (en) Method and system for uniformly accessing multiple directory services
US5710925A (en) Method and system for aggregating objects
US6438617B1 (en) Object-oriented communication system with support for multiple remote machine types
US5511197A (en) Method and system for network marshalling of interface pointers for remote procedure calls
US6230159B1 (en) Method for creating object inheritance
US20030200504A1 (en) Method and system for naming and binding objects
EP0908816A2 (en) Method and system for remotely browsing objects
US8191077B2 (en) Method for providing stand-in objects
US5732261A (en) Method of using an object-oriented communication system with support for multiple remote machine types
US6223227B1 (en) Method for providing stand-in objects
US6691299B1 (en) Object-oriented communications framework system with support for multiple remote machine types
EP0603880B1 (en) Method and system for aggregating objects
Thompson et al. Comparisons between corba and dcom: architectures for distributed computing

Legal Events

Date Code Title Description
EEER Examination request
MKLA Lapsed

Effective date: 20141028