public interface BundleManager extends org.jboss.msc.service.Service<BundleManager>
Bundle management.| Modifier and Type | Method and Description |
|---|---|
XBundle |
getBundleById(long bundleId)
Get a bundle by id
Note, this will get the bundle regadless of its state.
|
XBundle |
getBundleByLocation(String location)
Get a bundle by location
|
Set<XBundle> |
getBundles()
Get the set of bundles that are not in state
Bundle.UNINSTALLED. |
Set<XBundle> |
getBundles(Integer states)
Get the set of bundles that are in one of the given states.
|
Set<XBundle> |
getBundles(String symbolicName,
org.osgi.framework.VersionRange versionRange)
Get the set of bundles with the given symbolic name and version
Note, this will get bundles regadless of their state.
|
Map<String,Object> |
getProperties()
Returns the framework properties merged with the System properties.
|
Object |
getProperty(String key)
Get a framework property
|
org.jboss.msc.service.ServiceContainer |
getServiceContainer()
Get the service container
|
org.jboss.msc.service.ServiceTarget |
getServiceTarget()
Get the service target
|
XBundle |
getSystemBundle()
Get the system bundle
|
XBundleRevision |
installBundleRevision(org.osgi.framework.BundleContext context,
Deployment deployment,
org.jboss.msc.service.ServiceTarget serviceTarget)
Install a
XBundleRevision from the given deployment |
boolean |
isFrameworkActive()
True the framework has reached the
Services.FRAMEWORK_ACTIVE state |
void |
registerExecutorService(ExecutorService executorService)
Register an executor service with the bundle manager When the framework stops all the executor services are shutdown.
|
void |
removeRevision(XBundleRevision revision,
int options)
Remove a bundle revision from the framework
|
void |
resolveBundle(XBundle bundle)
Resolve the given bundle
|
void |
startBundle(XBundle bundle,
int options)
Start the given bundle
|
void |
stopBundle(XBundle bundle,
int options)
Stop the given bundle
|
void |
uninstallBundle(XBundle bundle,
int options)
Uninstall the given bundle
|
void |
unregisterExecutorService(ExecutorService executorService)
Register an executor service with the bundle manager When the framework stops all the executor services are shutdown.
|
void |
updateBundle(XBundle bundle,
InputStream input)
Update the given bundle
|
Set<XBundle> getBundles()
Bundle.UNINSTALLED.Set<XBundle> getBundles(Integer states)
states - The binary or combination of states or nullSet<XBundle> getBundles(String symbolicName, org.osgi.framework.VersionRange versionRange)
symbolicName - The bundle symbolic nameversionRange - The optional bundle version rangeXBundle getBundleById(long bundleId)
bundleId - The identifier of the bundleXBundle getBundleByLocation(String location)
location - the location of the bundleXBundle getSystemBundle()
IntegrationServices.SYSTEM_BUNDLE_INTERNAL
stateboolean isFrameworkActive()
Services.FRAMEWORK_ACTIVE stateXBundleRevision installBundleRevision(org.osgi.framework.BundleContext context, Deployment deployment, org.jboss.msc.service.ServiceTarget serviceTarget) throws org.osgi.framework.BundleException
XBundleRevision from the given deploymentcontext - The context that is used to install the revisiondeployment - The bundle deploymentserviceTarget - The service target for the serviceorg.osgi.framework.BundleExceptionvoid resolveBundle(XBundle bundle) throws ResolutionException
ResolutionExceptionvoid startBundle(XBundle bundle, int options) throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionvoid stopBundle(XBundle bundle, int options) throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionvoid updateBundle(XBundle bundle, InputStream input) throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionvoid uninstallBundle(XBundle bundle, int options) throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionvoid removeRevision(XBundleRevision revision, int options)
revision - The bundle revisionoptions - TODOorg.jboss.msc.service.ServiceContainer getServiceContainer()
org.jboss.msc.service.ServiceTarget getServiceTarget()
void registerExecutorService(ExecutorService executorService)
void unregisterExecutorService(ExecutorService executorService)
Map<String,Object> getProperties()
Copyright © 2016 JBoss by Red Hat. All rights reserved.