|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OSGiBundleManager
OSGiBundleManager provides management capabilities to install, uninstall and list installed bundles.
| Method Summary | |
|---|---|
java.util.List<OSGiBundle> |
getBundles()
Returns the installed OSGi bundles. |
void |
installBundle(java.lang.String anURL,
java.lang.Integer aStartLevel)
Install the OSGi bundle given the bundle url. |
void |
startBundle(java.lang.String aBundleSymbolicName,
java.lang.String aVersion)
Starts the specified bundle. |
void |
stopBundle(java.lang.String aBundleSymbolicName,
java.lang.String aVersion)
Stops the specified bundle. |
void |
uninstallBundle(java.lang.String aBundleSymbolicName,
java.lang.String aVersion)
Uninstall the bundle given the bundle symbolic name and the version. |
| Method Detail |
|---|
java.util.List<OSGiBundle> getBundles()
void installBundle(java.lang.String anURL,
java.lang.Integer aStartLevel)
throws java.lang.IllegalArgumentException,
InstallBundleFailException
anURL - The url of the bundle installed. This argument must not be null.aStartLevel - The bundle start level. Sets to null if the start level should be the default OSGi
container start level.
java.lang.IllegalArgumentException - Thrown if the specified url is null.
InstallBundleFailException - Thrown if installing the specified bundle fails.To retrieve the default start level of the {@code OSGi} container.
void uninstallBundle(java.lang.String aBundleSymbolicName,
java.lang.String aVersion)
throws java.lang.IllegalArgumentException,
UninstallBundleFailException
aBundleSymbolicName - The bundle symbolic name. This argument must not be null.aVersion - The bundle version. This argument must not be null.
java.lang.IllegalArgumentException - Thrown if one or both arguments are null.
UninstallBundleFailException - Thrown if uninstalling the specified bundle fails.
BundleNotFoundException - Thrown if the requested bundle is not found.
void startBundle(java.lang.String aBundleSymbolicName,
java.lang.String aVersion)
throws java.lang.IllegalArgumentException,
BundleNotFoundException,
BundleStartFailException
aBundleSymbolicName - The bundle symbolic name. This argument must not be null.aVersion - The bundle version. This argument must not be null.
java.lang.IllegalArgumentException - Thrown if one or both arguments are null.
BundleNotFoundException - Thrown if the requested bundle is not found.
BundleStartFailException - Thrown if the requested bundle fail to start.
void stopBundle(java.lang.String aBundleSymbolicName,
java.lang.String aVersion)
throws java.lang.IllegalArgumentException,
BundleNotFoundException,
BundleStopFailException
aBundleSymbolicName - The bundle symbolic name. This argument must not be null.aVersion - The bundle version. This argument must not be null.
java.lang.IllegalArgumentException - Thrown if one or both arguments are null.
BundleNotFoundException - Thrown if the requested bundle is not found.
BundleStopFailException - Thrown if the requested bundle fail to stop.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||