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 Constructor Description OsgiConnectorInfoManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
addingEntries(org.osgi.framework.Bundle bundle, List<org.ops4j.pax.swissbox.extender.ManifestEntry> list)
void
deleteConnectorEventHandler(ConnectorEventHandler hook)
Deletes an observer from the set of observers of this object.void
dispose()
Shut down of all connector pools, resources, etc.ConnectorInfo
findConnectorInfo(ConnectorKey key)
Returns theConnectorInfo
that is associated with the specifiedConnectorKey
.List<ConnectorInfo>
getConnectorInfos()
Returns the list ofConnectorInfo
instances.Properties
getResourceAsProperties(org.osgi.framework.Bundle loader, String path)
ConnectorFacade
newInstance(APIConfiguration config)
Get a new instance ofConnectorFacade
.ConnectorFacade
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
-
-
-
-
Method Detail
-
findConnectorInfo
public ConnectorInfo findConnectorInfo(ConnectorKey key)
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
public List<ConnectorInfo> 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
public ConnectorFacade newInstance(APIConfiguration config)
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
public ConnectorFacade newInstance(ConnectorInfo connectorInfo, String config)
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
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 interfaceConnectorEventPublisher
- Parameters:
hook
- an observer to be added.
-
deleteConnectorEventHandler
public void deleteConnectorEventHandler(ConnectorEventHandler hook)
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
-
-