public interface BundleManager extends org.jboss.msc.service.Service<BundleManager>
Bundle
management.Modifier and Type | Method and Description |
---|---|
org.jboss.osgi.resolver.XBundle |
getBundleById(long bundleId)
Get a bundle by id
Note, this will get the bundle regadless of its state.
|
org.jboss.osgi.resolver.XBundle |
getBundleByLocation(String location)
Get a bundle by location
|
Set<org.jboss.osgi.resolver.XBundle> |
getBundles()
Get the set of bundles that are not in state
Bundle.UNINSTALLED . |
Set<org.jboss.osgi.resolver.XBundle> |
getBundles(Integer states)
Get the set of bundles that are in one of the given states.
|
Set<org.jboss.osgi.resolver.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
|
org.jboss.osgi.resolver.XBundle |
getSystemBundle()
Get the system bundle
|
org.jboss.osgi.resolver.XBundleRevision |
installBundleRevision(org.osgi.framework.BundleContext context,
org.jboss.osgi.deployment.deployer.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(org.jboss.osgi.resolver.XBundleRevision revision,
int options)
Remove a bundle revision from the framework
|
void |
resolveBundle(org.jboss.osgi.resolver.XBundle bundle)
Resolve the given bundle
|
void |
startBundle(org.jboss.osgi.resolver.XBundle bundle,
int options)
Start the given bundle
|
void |
stopBundle(org.jboss.osgi.resolver.XBundle bundle,
int options)
Stop the given bundle
|
void |
uninstallBundle(org.jboss.osgi.resolver.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(org.jboss.osgi.resolver.XBundle bundle,
InputStream input)
Update the given bundle
|
Set<org.jboss.osgi.resolver.XBundle> getBundles()
Bundle.UNINSTALLED
.Set<org.jboss.osgi.resolver.XBundle> getBundles(Integer states)
states
- The binary or combination of states or nullSet<org.jboss.osgi.resolver.XBundle> getBundles(String symbolicName, org.osgi.framework.VersionRange versionRange)
symbolicName
- The bundle symbolic nameversionRange
- The optional bundle version rangeorg.jboss.osgi.resolver.XBundle getBundleById(long bundleId)
bundleId
- The identifier of the bundleorg.jboss.osgi.resolver.XBundle getBundleByLocation(String location)
location
- the location of the bundleorg.jboss.osgi.resolver.XBundle getSystemBundle()
IntegrationServices.SYSTEM_BUNDLE_INTERNAL
stateboolean isFrameworkActive()
Services.FRAMEWORK_ACTIVE
stateorg.jboss.osgi.resolver.XBundleRevision installBundleRevision(org.osgi.framework.BundleContext context, org.jboss.osgi.deployment.deployer.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.BundleException
void resolveBundle(org.jboss.osgi.resolver.XBundle bundle) throws org.osgi.service.resolver.ResolutionException
org.osgi.service.resolver.ResolutionException
void startBundle(org.jboss.osgi.resolver.XBundle bundle, int options) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
void stopBundle(org.jboss.osgi.resolver.XBundle bundle, int options) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
void updateBundle(org.jboss.osgi.resolver.XBundle bundle, InputStream input) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
void uninstallBundle(org.jboss.osgi.resolver.XBundle bundle, int options) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
void removeRevision(org.jboss.osgi.resolver.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 © 2013 JBoss by Red Hat. All rights reserved.