|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OsgiContainerManager
Manages the OSGi container and handles any interactions with it
| 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.util.tracker.ServiceTracker |
getServiceTracker(java.lang.String interfaceClassName)
Gets a service tracker to follow a service registered under a certain interface |
org.osgi.framework.Bundle |
installBundle(java.io.File file)
Installs a bundle into a running OSGI container |
boolean |
isRunning()
|
void |
start()
Starts the OSGi container |
void |
stop()
Stops the OSGi container |
| Method Detail |
|---|
void start()
throws OsgiContainerException
OsgiContainerException - If the container cannot be started
void stop()
throws OsgiContainerException
OsgiContainerException - If the container cannot be stopped
org.osgi.framework.Bundle installBundle(java.io.File file)
throws OsgiContainerException
file - The bundle file to install
OsgiContainerException - If the bundle cannot be loadedboolean isRunning()
org.osgi.framework.Bundle[] getBundles()
org.osgi.framework.ServiceReference[] getRegisteredServices()
java.util.List<HostComponentRegistration> getHostComponentRegistrations()
org.osgi.util.tracker.ServiceTracker getServiceTracker(java.lang.String interfaceClassName)
interfaceClassName - The interface class as a String
java.lang.IllegalStateException - If the OSGi container is not running
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||