Creating the Connector Info Manager

Important

Connectors continue to be released outside the IDM release. For the latest documentation, refer to the ICF documentation.

You must initiate a specific connector info manager type, depending on whether your connector is local or remote. The following samples show how to create a local connector info manager and a remote connector info manager.

  1. Create a ConnectorInfoManager and a ConnectorKey for the connector.

    The ConnectorKey uniquely identifies the connector instance. The ConnectorKey class takes a bundleName (the name of the Connector bundle), a bundleVersion (the version of the Connector bundle) and a connectorName (the name of the Connector)

    The ConnectorInfoManager retrieves a ConnectorInfo object for the connector by its connector key.

    Acquiring a Local Connector Info Object (Java)
    ConnectorInfoManagerFactory fact = ConnectorInfoManagerFactory.getInstance();
    File bundleDirectory = new File("/connectorDir/bundles/myconnector");
    URL url = IOUtil.makeURL(bundleDirectory,
         "/dist/org.identityconnectors.myconnector-1.0.jar");
    ConnectorInfoManager manager = fact.getLocalManager(url);
    ConnectorKey key = new ConnectorKey("org.identityconnectors.myconnector",
         "1.0", "MyConnector");

    Acquiring a Remote Connector Info Object (Java)
    ConnectorInfoManagerFactory fact = ConnectorInfoManagerFactory.getInstance();
    File bundleDirectory = new File("/connectorDir/bundles/myconnector");
    URL url = IOUtil.makeURL(bundleDirectory,
         "/dist/org.identityconnectors.myconnector-1.0.jar");
    ConnectorInfoManager manager = fact.getLocalManager(url);
    ConnectorKey key = new ConnectorKey("org.identityconnectors.myconnector",
         "1.0", "MyConnector");

Read a different version of :