|
||||||||||
| 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
| Constructor Summary | |
|---|---|
FelixOsgiContainerManager(java.io.File startBundlesPath)
|
|
| 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(java.util.Collection<org.twdata.pkgscanner.ExportPackage> packageExports,
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 |
| Constructor Detail |
|---|
public FelixOsgiContainerManager(java.io.File startBundlesPath)
| Method Detail |
|---|
public void start(java.util.Collection<org.twdata.pkgscanner.ExportPackage> packageExports,
HostComponentProvider provider)
throws OsgiContainerException
OsgiContainerManager
start in interface OsgiContainerManagerpackageExports - The packages to exportprovider - 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 | |||||||||