Class OsgiConnectorInfoManagerImpl

java.lang.Object
org.identityconnectors.framework.api.ConnectorFacadeFactory
org.identityconnectors.framework.impl.api.osgi.internal.OsgiConnectorInfoManagerImpl
All Implemented Interfaces:
ConnectorEventPublisher, ConnectorInfoManager, org.ops4j.pax.swissbox.extender.BundleObserver<org.ops4j.pax.swissbox.extender.ManifestEntry>

public class OsgiConnectorInfoManagerImpl extends ConnectorFacadeFactory implements ConnectorInfoManager, org.ops4j.pax.swissbox.extender.BundleObserver<org.ops4j.pax.swissbox.extender.ManifestEntry>, ConnectorEventPublisher
The OSGi ConnectorInfoManager Implementation.
Since:
1.1
Author:
Laszlo Hordos
  • Constructor Details

    • OsgiConnectorInfoManagerImpl

      public OsgiConnectorInfoManagerImpl()
  • Method Details

    • findConnectorInfo

      public ConnectorInfo findConnectorInfo(ConnectorKey key)
      Description copied from interface: ConnectorInfoManager
      Returns the ConnectorInfo that is associated with the specified ConnectorKey.
      Specified by:
      findConnectorInfo in interface ConnectorInfoManager
      Parameters:
      key - The key of a connector.
      Returns:
      The ConnectorInfo or null if none was associated with the specified key.
    • getConnectorInfos

      public List<ConnectorInfo> getConnectorInfos()
      Description copied from interface: ConnectorInfoManager
      Returns the list of ConnectorInfo instances.
      Specified by:
      getConnectorInfos in interface ConnectorInfoManager
      Returns:
      the list of ConnectorInfo instances.
    • dispose

      public void dispose()
      Description copied from class: ConnectorFacadeFactory
      Shut down of all connector pools, resources, etc. The framework will release all the resources. No operations will be possible until the framework is re-initialized.
      Specified by:
      dispose in class ConnectorFacadeFactory
    • newInstance

      public ConnectorFacade newInstance(APIConfiguration config)
      Description copied from class: ConnectorFacadeFactory
      Get a new instance of ConnectorFacade.
      Specified by:
      newInstance in class ConnectorFacadeFactory
      Parameters:
      config - all the configuration that the framework, connector, and pooling needs.
      Returns:
      ConnectorFacade to call API operations against.
    • newInstance

      public ConnectorFacade newInstance(ConnectorInfo connectorInfo, String config)
      Description copied from class: ConnectorFacadeFactory
      Get a new instance of ConnectorFacade.
      Specified by:
      newInstance in class ConnectorFacadeFactory
      Parameters:
      connectorInfo - TODO Add JavaDoc later
      config - all the configuration that the framework, connector, and pooling needs. It's a Base64 serialised APIConfiguration instance.
      Returns:
      ConnectorFacade to call API operations against.
    • addingEntries

      public void addingEntries(org.osgi.framework.Bundle bundle, List<org.ops4j.pax.swissbox.extender.ManifestEntry> list)
      Specified by:
      addingEntries in interface org.ops4j.pax.swissbox.extender.BundleObserver<org.ops4j.pax.swissbox.extender.ManifestEntry>
    • removingEntries

      public void removingEntries(org.osgi.framework.Bundle bundle, List<org.ops4j.pax.swissbox.extender.ManifestEntry> list)
      Specified by:
      removingEntries in interface org.ops4j.pax.swissbox.extender.BundleObserver<org.ops4j.pax.swissbox.extender.ManifestEntry>
    • addConnectorEventHandler

      public void addConnectorEventHandler(ConnectorEventHandler hook)
      Adds an observer to the set of observers for this object, provided that it is not the same as some observer already in the set. The order in which notifications will be delivered to multiple observers is not specified. See the class comment.
      Specified by:
      addConnectorEventHandler in interface ConnectorEventPublisher
      Parameters:
      hook - an observer to be added.
    • deleteConnectorEventHandler

      public void deleteConnectorEventHandler(ConnectorEventHandler hook)
      Deletes an observer from the set of observers of this object. Passing null to this method will have no effect.
      Specified by:
      deleteConnectorEventHandler in interface ConnectorEventPublisher
      Parameters:
      hook - the observer to be deleted.
    • getResourceAsProperties

      public Properties getResourceAsProperties(org.osgi.framework.Bundle loader, String path) throws IOException
      Throws:
      IOException