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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an observer to the set of observers for this object, provided that it is not the same as some observer already in the set.voidaddingEntries(org.osgi.framework.Bundle bundle, List<org.ops4j.pax.swissbox.extender.ManifestEntry> list) voidDeletes an observer from the set of observers of this object.voiddispose()Shut down of all connector pools, resources, etc.Returns theConnectorInfothat is associated with the specifiedConnectorKey.Returns the list ofConnectorInfoinstances.getResourceAsProperties(org.osgi.framework.Bundle loader, String path) newInstance(APIConfiguration config) Get a new instance ofConnectorFacade.newInstance(ConnectorInfo connectorInfo, String config) Get a new instance ofConnectorFacade.voidremovingEntries(org.osgi.framework.Bundle bundle, List<org.ops4j.pax.swissbox.extender.ManifestEntry> list) Methods inherited from class org.identityconnectors.framework.api.ConnectorFacadeFactory
getInstance, getManagedInstance
-
Constructor Details
-
OsgiConnectorInfoManagerImpl
public OsgiConnectorInfoManagerImpl()
-
-
Method Details
-
findConnectorInfo
Description copied from interface:ConnectorInfoManagerReturns theConnectorInfothat is associated with the specifiedConnectorKey.- Specified by:
findConnectorInfoin interfaceConnectorInfoManager- Parameters:
key- The key of a connector.- Returns:
- The
ConnectorInfoornullif none was associated with the specified key.
-
getConnectorInfos
Description copied from interface:ConnectorInfoManagerReturns the list ofConnectorInfoinstances.- Specified by:
getConnectorInfosin interfaceConnectorInfoManager- Returns:
- the list of
ConnectorInfoinstances.
-
dispose
public void dispose()Description copied from class:ConnectorFacadeFactoryShut 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:
disposein classConnectorFacadeFactory
-
newInstance
Description copied from class:ConnectorFacadeFactoryGet a new instance ofConnectorFacade.- Specified by:
newInstancein classConnectorFacadeFactory- Parameters:
config- all the configuration that the framework, connector, and pooling needs.- Returns:
ConnectorFacadeto call API operations against.
-
newInstance
Description copied from class:ConnectorFacadeFactoryGet a new instance ofConnectorFacade.- Specified by:
newInstancein classConnectorFacadeFactory- Parameters:
connectorInfo- TODO Add JavaDoc laterconfig- all the configuration that the framework, connector, and pooling needs. It's a Base64 serialised APIConfiguration instance.- Returns:
ConnectorFacadeto call API operations against.
-
addingEntries
public void addingEntries(org.osgi.framework.Bundle bundle, List<org.ops4j.pax.swissbox.extender.ManifestEntry> list) - Specified by:
addingEntriesin interfaceorg.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:
removingEntriesin interfaceorg.ops4j.pax.swissbox.extender.BundleObserver<org.ops4j.pax.swissbox.extender.ManifestEntry>
-
addConnectorEventHandler
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:
addConnectorEventHandlerin interfaceConnectorEventPublisher- Parameters:
hook- an observer to be added.
-
deleteConnectorEventHandler
Deletes an observer from the set of observers of this object. Passingnullto this method will have no effect.- Specified by:
deleteConnectorEventHandlerin interfaceConnectorEventPublisher- Parameters:
hook- the observer to be deleted.
-
getResourceAsProperties
public Properties getResourceAsProperties(org.osgi.framework.Bundle loader, String path) throws IOException - Throws:
IOException
-