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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.void
addingEntries
(org.osgi.framework.Bundle bundle, List<org.ops4j.pax.swissbox.extender.ManifestEntry> list) void
Deletes an observer from the set of observers of this object.void
dispose()
Shut down of all connector pools, resources, etc.Returns theConnectorInfo
that is associated with the specifiedConnectorKey
.Returns the list ofConnectorInfo
instances.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
.void
removingEntries
(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:ConnectorInfoManager
Returns theConnectorInfo
that is associated with the specifiedConnectorKey
.- Specified by:
findConnectorInfo
in interfaceConnectorInfoManager
- Parameters:
key
- The key of a connector.- Returns:
- The
ConnectorInfo
ornull
if none was associated with the specified key.
-
getConnectorInfos
Description copied from interface:ConnectorInfoManager
Returns the list ofConnectorInfo
instances.- Specified by:
getConnectorInfos
in interfaceConnectorInfoManager
- 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 classConnectorFacadeFactory
-
newInstance
Description copied from class:ConnectorFacadeFactory
Get a new instance ofConnectorFacade
.- Specified by:
newInstance
in classConnectorFacadeFactory
- Parameters:
config
- all the configuration that the framework, connector, and pooling needs.- Returns:
ConnectorFacade
to call API operations against.
-
newInstance
Description copied from class:ConnectorFacadeFactory
Get a new instance ofConnectorFacade
.- Specified by:
newInstance
in 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:
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 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:
removingEntries
in 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:
addConnectorEventHandler
in interfaceConnectorEventPublisher
- Parameters:
hook
- an observer to be added.
-
deleteConnectorEventHandler
Deletes an observer from the set of observers of this object. Passingnull
to this method will have no effect.- Specified by:
deleteConnectorEventHandler
in interfaceConnectorEventPublisher
- Parameters:
hook
- the observer to be deleted.
-
getResourceAsProperties
public Properties getResourceAsProperties(org.osgi.framework.Bundle loader, String path) throws IOException - Throws:
IOException
-