|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ops4j.pax.scanner.internal.InstallableBundleImpl
public class InstallableBundleImpl
Constructor Summary | |
---|---|
InstallableBundleImpl(org.osgi.framework.BundleContext bundleContext,
ScannedBundle scannedBundle)
Creates a new Installable Bundle with no start level service. |
|
InstallableBundleImpl(org.osgi.framework.BundleContext bundleContext,
ScannedBundle scannedBundle,
org.osgi.service.startlevel.StartLevel startLevelService)
Creates a new Installable Bundle with a start level service that can be null. |
Method Summary | |
---|---|
org.osgi.framework.Bundle |
getBundle()
Return the installed bundle. |
InstallableBundle |
install()
Installs the bundle. |
InstallableBundle |
start()
Starts the installed bundle regardles the fact that the bundle was marked that it should not start. |
InstallableBundle |
startIfNecessary()
Starts the installed bundle if the bundle should be started. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstallableBundleImpl(org.osgi.framework.BundleContext bundleContext, ScannedBundle scannedBundle)
bundleContext
- a bundle context; mandatoryscannedBundle
- scanned bundle; mandatorypublic InstallableBundleImpl(org.osgi.framework.BundleContext bundleContext, ScannedBundle scannedBundle, org.osgi.service.startlevel.StartLevel startLevelService)
bundleContext
- a bundle context; mandatoryscannedBundle
- scanned bundle; mandatorystartLevelService
- a start level service; optionalMethod Detail |
---|
public org.osgi.framework.Bundle getBundle()
InstallableBundle
getBundle
in interface InstallableBundle
InstallableBundle.getBundle()
public InstallableBundle install() throws org.osgi.framework.BundleException
InstallableBundle
install
in interface InstallableBundle
org.osgi.framework.BundleException
- if the bundle could not be installedInstallableBundle.install()
public InstallableBundle startIfNecessary() throws org.osgi.framework.BundleException
InstallableBundle
startIfNecessary
in interface InstallableBundle
org.osgi.framework.BundleException
- if the bundle could not be installedInstallableBundle.startIfNecessary()
public InstallableBundle start() throws org.osgi.framework.BundleException
InstallableBundle
start
in interface InstallableBundle
org.osgi.framework.BundleException
- if the bundle could not be installedInstallableBundle.start()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |