Creating a connector instance (IDL code)
You can create a Connector Instance through an Internal Component Diagram, or from a Component.
To create a connector instance through an internal component diagram:
1. Open the Internal Component Diagram on which you want to create the Connector Instance.
2. On the diagram's tab, click the
Connector Instance button.
3. On the diagram, click within the Component or Component Part that is to own the Connector Instance.
4. From the Type Selector dialog, select the Connector that is represented by the Connector Instance through a selected or new Bound Module:
◦ To select a Connector through an existing Bound Module: select the Select an Existing Type option, expand the appropriate Bound Module, and then select the Connector that is represented through the Connector Instance.
◦ To select a Connector through a new Bound Module: select the Create a New Type option, in the Name box type the name of the Bound Module that will be created, click OK, expand the Template Module that will be instantiated by the new Bound Module, and then select the Connector that is represented through the Connector Instance.
5. Type the name of the Connector Instance, and then press the Enter key.
To create a connector instance from a component:
1. In the Packages pane, locate the Component that is to own the Connector Instance.
2. Right-click the Component, point to New, and then click ConnectorInstance.
3. From the Type Selector dialog, select the Connector that is represented by the Connector Instance through either a selected or new Bound Module:
◦ To select a Connector through an existing Bound Module: select the Select an Existing Type option, expand the appropriate Bound Module, and then select the Connector that is represented through the Connector Instance.
◦ To select a Connector through a new Bound Module: select the Create a New Type option, in the Name box type the name of the Bound Module that will be created, click OK, expand the Template Module that will be instantiated by the new Bound Module, and then select the Connector that is represented through the Connector Instance.
4. Type the name of the Connector Instance, and then press the Enter key.