|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager
public class FelixOsgiContainerManager
Felix implementation of the OSGi container manager
| Field Summary | |
|---|---|
static java.lang.String |
OSGI_FRAMEWORK_BUNDLES_ZIP
|
| Constructor Summary | |
|---|---|
FelixOsgiContainerManager(java.io.File frameworkBundlesDir,
PackageScannerConfiguration packageScannerConfig)
|
|
FelixOsgiContainerManager(java.net.URL frameworkBundlesZip,
java.io.File frameworkBundlesDir,
PackageScannerConfiguration packageScannerConfig)
|
|
| Method Summary | |
|---|---|
org.osgi.framework.Bundle[] |
getBundles()
Gets a list of installed bundles |
java.util.List<HostComponentRegistration> |
getHostComponentRegistrations()
Gets a list of host component registrations |
org.osgi.framework.ServiceReference[] |
getRegisteredServices()
Gets a list of service references |
org.osgi.framework.Bundle |
installBundle(java.io.File file)
Installs a bundle into a running OSGI container |
boolean |
isRunning()
|
void |
reloadHostComponents(HostComponentProvider provider)
Reloads all host components used |
void |
start(HostComponentProvider provider)
Starts the OSGi container |
void |
stop()
Stops the OSGi container |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String OSGI_FRAMEWORK_BUNDLES_ZIP
| Constructor Detail |
|---|
public FelixOsgiContainerManager(java.io.File frameworkBundlesDir,
PackageScannerConfiguration packageScannerConfig)
public FelixOsgiContainerManager(java.net.URL frameworkBundlesZip,
java.io.File frameworkBundlesDir,
PackageScannerConfiguration packageScannerConfig)
| Method Detail |
|---|
public void start(HostComponentProvider provider)
throws OsgiContainerException
OsgiContainerManager
start in interface OsgiContainerManagerprovider - The host component provider to use when registering host services
OsgiContainerException - If the container cannot be started
public void stop()
throws OsgiContainerException
OsgiContainerManager
stop in interface OsgiContainerManagerOsgiContainerException - If the container cannot be stoppedpublic org.osgi.framework.Bundle[] getBundles()
OsgiContainerManager
getBundles in interface OsgiContainerManagerpublic org.osgi.framework.ServiceReference[] getRegisteredServices()
OsgiContainerManager
getRegisteredServices in interface OsgiContainerManager
public org.osgi.framework.Bundle installBundle(java.io.File file)
throws OsgiContainerException
OsgiContainerManager
installBundle in interface OsgiContainerManagerfile - The bundle file to install
OsgiContainerException - If the bundle cannot be loadedpublic void reloadHostComponents(HostComponentProvider provider)
OsgiContainerManager
reloadHostComponents in interface OsgiContainerManagerprovider - The host component provider to use when registering host servicespublic boolean isRunning()
isRunning in interface OsgiContainerManagerpublic java.util.List<HostComponentRegistration> getHostComponentRegistrations()
OsgiContainerManager
getHostComponentRegistrations in interface OsgiContainerManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||