public class OsgiConnectorInfoManagerImpl extends ConnectorFacadeFactory implements ConnectorInfoManager, org.ops4j.pax.swissbox.extender.BundleObserver<org.ops4j.pax.swissbox.extender.ManifestEntry>, ConnectorEventPublisher
| Constructor and Description |
|---|
OsgiConnectorInfoManagerImpl() |
| Modifier and Type | Method and 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 the
ConnectorInfo that is associated with the
specified ConnectorKey. |
List<ConnectorInfo> |
getConnectorInfos()
Returns the list of
ConnectorInfo instances. |
Properties |
getResourceAsProperties(org.osgi.framework.Bundle loader,
String path) |
ConnectorFacade |
newInstance(APIConfiguration config)
Get a new instance of
ConnectorFacade. |
ConnectorFacade |
newInstance(ConnectorInfo connectorInfo,
String config)
Get a new instance of
ConnectorFacade. |
void |
removingEntries(org.osgi.framework.Bundle bundle,
List<org.ops4j.pax.swissbox.extender.ManifestEntry> list) |
getInstance, getManagedInstancepublic ConnectorInfo findConnectorInfo(ConnectorKey key)
ConnectorInfoManagerConnectorInfo that is associated with the
specified ConnectorKey.findConnectorInfo in interface ConnectorInfoManagerkey - The key of a connector.ConnectorInfo or null if none was
associated with the specified key.public List<ConnectorInfo> getConnectorInfos()
ConnectorInfoManagerConnectorInfo instances.getConnectorInfos in interface ConnectorInfoManagerConnectorInfo instances.public void dispose()
ConnectorFacadeFactorydispose in class ConnectorFacadeFactorypublic ConnectorFacade newInstance(APIConfiguration config)
ConnectorFacadeFactoryConnectorFacade.newInstance in class ConnectorFacadeFactoryconfig - all the configuration that the framework, connector, and
pooling needs.ConnectorFacade to call API operations against.public ConnectorFacade newInstance(ConnectorInfo connectorInfo, String config)
ConnectorFacadeFactoryConnectorFacade.newInstance in class ConnectorFacadeFactoryconnectorInfo - TODO Add JavaDoc laterconfig - all the configuration that the framework, connector, and
pooling needs. It's a Base64 serialised APIConfiguration
instance.ConnectorFacade to call API operations against.public void addingEntries(org.osgi.framework.Bundle bundle,
List<org.ops4j.pax.swissbox.extender.ManifestEntry> list)
addingEntries in interface org.ops4j.pax.swissbox.extender.BundleObserver<org.ops4j.pax.swissbox.extender.ManifestEntry>public void removingEntries(org.osgi.framework.Bundle bundle,
List<org.ops4j.pax.swissbox.extender.ManifestEntry> list)
removingEntries in interface org.ops4j.pax.swissbox.extender.BundleObserver<org.ops4j.pax.swissbox.extender.ManifestEntry>public void addConnectorEventHandler(ConnectorEventHandler hook)
addConnectorEventHandler in interface ConnectorEventPublisherhook - an observer to be added.public void deleteConnectorEventHandler(ConnectorEventHandler hook)
null to this method will have no effect.deleteConnectorEventHandler in interface ConnectorEventPublisherhook - the observer to be deleted.public Properties getResourceAsProperties(org.osgi.framework.Bundle loader, String path) throws IOException
IOExceptionCopyright © 2022. All rights reserved.