Package com.yahoo.jdisc.application
Class BundleInstaller
java.lang.Object
com.yahoo.jdisc.application.BundleInstaller
This is a utility class to help with installing, starting, stopping and uninstalling OSGi Bundles. You can choose
to inject an instance of this class, or it can be created explicitly by reference to a OsgiFramework
.
Please see commentary on OsgiFramework.installBundle(String)
for a description of exception-safety issues
to consider when installing bundles that use the OsgiHeader.PREINSTALL_BUNDLE
manifest instruction.
- Author:
- Simon Thoresen Hult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<org.osgi.framework.Bundle>
installAndStart
(Iterable<String> locations) List<org.osgi.framework.Bundle>
installAndStart
(String... locations) void
stopAndUninstall
(Iterable<org.osgi.framework.Bundle> bundles) void
stopAndUninstall
(org.osgi.framework.Bundle... bundles)
-
Constructor Details
-
BundleInstaller
-
-
Method Details
-
installAndStart
public List<org.osgi.framework.Bundle> installAndStart(String... locations) throws org.osgi.framework.BundleException - Throws:
org.osgi.framework.BundleException
-
installAndStart
public List<org.osgi.framework.Bundle> installAndStart(Iterable<String> locations) throws org.osgi.framework.BundleException - Throws:
org.osgi.framework.BundleException
-
stopAndUninstall
public void stopAndUninstall(org.osgi.framework.Bundle... bundles) throws org.osgi.framework.BundleException - Throws:
org.osgi.framework.BundleException
-
stopAndUninstall
public void stopAndUninstall(Iterable<org.osgi.framework.Bundle> bundles) throws org.osgi.framework.BundleException - Throws:
org.osgi.framework.BundleException
-