public final class BundleManager extends org.jboss.msc.service.AbstractService<BundleManagerService> implements BundleManagerService
Modifier and Type | Method and Description |
---|---|
org.osgi.framework.Bundle |
getBundle(org.jboss.modules.ModuleIdentifier identifier)
Get the bundle base name for the module identifier.
|
org.jboss.msc.service.ServiceName |
getServiceName(org.osgi.framework.Bundle bundle)
Get the service base name for the given bundle.
|
BundleManager |
getValue() |
org.jboss.msc.service.ServiceName |
installBundle(org.jboss.msc.service.ServiceTarget serviceTarget,
org.jboss.osgi.deployment.deployer.Deployment dep)
Install a bundle from the given deployment
|
org.jboss.msc.service.ServiceName |
registerModule(org.jboss.msc.service.ServiceTarget serviceTarget,
org.jboss.modules.Module module,
org.jboss.osgi.metadata.OSGiMetaData metadata)
Register a module with the OSGi layer.
|
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
void |
uninstallBundle(org.jboss.osgi.deployment.deployer.Deployment dep)
Uninstall the given deployment
|
void |
unregisterModule(org.jboss.modules.ModuleIdentifier identifier)
Unregister a module from the OSGi layer.
|
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<BundleManagerService>
start
in class org.jboss.msc.service.AbstractService<BundleManagerService>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<BundleManagerService>
stop
in class org.jboss.msc.service.AbstractService<BundleManagerService>
public BundleManager getValue() throws IllegalStateException
getValue
in interface org.jboss.msc.value.Value<BundleManagerService>
getValue
in class org.jboss.msc.service.AbstractService<BundleManagerService>
IllegalStateException
public org.jboss.msc.service.ServiceName getServiceName(org.osgi.framework.Bundle bundle)
BundleManagerService
getServiceName
in interface BundleManagerService
public org.osgi.framework.Bundle getBundle(org.jboss.modules.ModuleIdentifier identifier)
BundleManagerService
getBundle
in interface BundleManagerService
public org.jboss.msc.service.ServiceName registerModule(org.jboss.msc.service.ServiceTarget serviceTarget, org.jboss.modules.Module module, org.jboss.osgi.metadata.OSGiMetaData metadata) throws org.osgi.framework.BundleException
BundleManagerService
registerModule
in interface BundleManagerService
org.osgi.framework.BundleException
public org.jboss.msc.service.ServiceName installBundle(org.jboss.msc.service.ServiceTarget serviceTarget, org.jboss.osgi.deployment.deployer.Deployment dep) throws org.osgi.framework.BundleException
BundleManagerService
installBundle
in interface BundleManagerService
org.osgi.framework.BundleException
public void uninstallBundle(org.jboss.osgi.deployment.deployer.Deployment dep)
BundleManagerService
uninstallBundle
in interface BundleManagerService
public void unregisterModule(org.jboss.modules.ModuleIdentifier identifier)
BundleManagerService
unregisterModule
in interface BundleManagerService
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.