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, getManagedInstance
public ConnectorInfo findConnectorInfo(ConnectorKey key)
ConnectorInfoManager
ConnectorInfo
that is associated with the
specified ConnectorKey
.findConnectorInfo
in interface ConnectorInfoManager
key
- The key of a connector.ConnectorInfo
or null
if none was
associated with the specified key.public List<ConnectorInfo> getConnectorInfos()
ConnectorInfoManager
ConnectorInfo
instances.getConnectorInfos
in interface ConnectorInfoManager
ConnectorInfo
instances.public void dispose()
ConnectorFacadeFactory
dispose
in class ConnectorFacadeFactory
public ConnectorFacade newInstance(APIConfiguration config)
ConnectorFacadeFactory
ConnectorFacade
.newInstance
in class ConnectorFacadeFactory
config
- all the configuration that the framework, connector, and
pooling needs.ConnectorFacade
to call API operations against.public ConnectorFacade newInstance(ConnectorInfo connectorInfo, String config)
ConnectorFacadeFactory
ConnectorFacade
.newInstance
in class ConnectorFacadeFactory
connectorInfo
- 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 ConnectorEventPublisher
hook
- an observer to be added.public void deleteConnectorEventHandler(ConnectorEventHandler hook)
null
to this method will have no effect.deleteConnectorEventHandler
in interface ConnectorEventPublisher
hook
- the observer to be deleted.public Properties getResourceAsProperties(org.osgi.framework.Bundle loader, String path) throws IOException
IOException
Copyright © 2022. All rights reserved.