| java.lang.Object | |
| ↳ | com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager |
Felix implementation of the OSGi container manager
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | OSGI_FRAMEWORK_BUNDLES_ZIP | ||||||||||
| int | REFRESH_TIMEOUT | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Gets a list of installed bundles
| |||||||||||
Gets a list of host component registrations
| |||||||||||
Gets a list of service references
| |||||||||||
Gets a service tracker to follow a service registered under a certain interface.
| |||||||||||
Installs a bundle into a running OSGI container
| |||||||||||
Starts the OSGi container
| |||||||||||
Stops the OSGi container
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.plugin.osgi.container.OsgiContainerManager
| |||||||||||
This constructor is deprecated.
Since 2.2.0, use
FelixOsgiContainerManager(OsgiPersistentCache, PackageScannerConfiguration, HostComponentProvider, PluginEventManager) instead
Constructs the container manager using the framework bundles zip file located in this library
| frameworkBundlesDir | The directory to unzip the framework bundles into. |
|---|---|
| packageScannerConfig | The configuration for package scanning |
| provider | The host component provider. May be null. |
| eventManager | The plugin event manager to register for init and shutdown events |
This constructor is deprecated.
Since 2.2.0, use
FelixOsgiContainerManager(URL, OsgiPersistentCache, PackageScannerConfiguration, HostComponentProvider, PluginEventManager) instead
Constructs the container manager
| frameworkBundlesZip | The location of the zip file containing framework bundles |
|---|---|
| frameworkBundlesDir | The directory to unzip the framework bundles into. |
| packageScannerConfig | The configuration for package scanning |
| provider | The host component provider. May be null. |
| eventManager | The plugin event manager to register for init and shutdown events |
Constructs the container manager using the framework bundles zip file located in this library
| persistentCache | The persistent cache configuration. |
|---|---|
| packageScannerConfig | The configuration for package scanning |
| provider | The host component provider. May be null. |
| eventManager | The plugin event manager to register for init and shutdown events |
Constructs the container manager
| frameworkBundlesZip | The location of the zip file containing framework bundles |
|---|---|
| persistentCache | The persistent cache to use for the framework and framework bundles |
| packageScannerConfig | The configuration for package scanning |
| provider | The host component provider. May be null. |
| eventManager | The plugin event manager to register for init and shutdown events |
| OsgiContainerException | If the host version isn't supplied and the cache directory cannot be cleaned. |
|---|
Gets a list of installed bundles
Gets a list of host component registrations
Gets a list of service references
Gets a service tracker to follow a service registered under a certain interface. Will return a new ServiceTracker instance for every call, so don't call more than necessary. Any provided ServiceTracker instances will be opened before returning and automatically closed on shutdown.
| cls | The interface class as a String |
|---|
Installs a bundle into a running OSGI container
| file | The bundle file to install |
|---|
| OsgiContainerException |
|---|