public class BundleRegistry
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BundleRegistry.BundleWithMetadata |
| Constructor and Description |
|---|
BundleRegistry(FileInstall fileInstall) |
| Modifier and Type | Method and Description |
|---|---|
BundleRegistry.BundleWithMetadata |
getBundle(java.lang.String pluginName) |
java.lang.String |
getPluginName(org.osgi.framework.Bundle bundle) |
java.lang.Iterable<BundleRegistry.BundleWithMetadata> |
getPureOSGIBundles() |
BundleRegistry.BundleWithMetadata |
installAndStartNewBundle(java.lang.String pluginName,
java.lang.String pluginVersion) |
void |
installBundles(org.osgi.framework.launch.Framework framework) |
void |
registerService(OSGIServiceDescriptor desc,
java.lang.String serviceName) |
void |
startBundles() |
BundleRegistry.BundleWithMetadata |
stopAndUninstallNewBundle(java.lang.String pluginName,
java.lang.String pluginVersion) |
void |
stopBundles() |
void |
unregisterService(OSGIServiceDescriptor desc,
java.lang.String serviceName) |
@Inject public BundleRegistry(FileInstall fileInstall)
public void installBundles(org.osgi.framework.launch.Framework framework)
public BundleRegistry.BundleWithMetadata installAndStartNewBundle(java.lang.String pluginName, @Nullable java.lang.String pluginVersion) throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionpublic BundleRegistry.BundleWithMetadata stopAndUninstallNewBundle(java.lang.String pluginName, @Nullable java.lang.String pluginVersion) throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionpublic void startBundles()
public void stopBundles()
public java.lang.Iterable<BundleRegistry.BundleWithMetadata> getPureOSGIBundles()
public BundleRegistry.BundleWithMetadata getBundle(java.lang.String pluginName)
public java.lang.String getPluginName(org.osgi.framework.Bundle bundle)
public void registerService(OSGIServiceDescriptor desc, java.lang.String serviceName)
public void unregisterService(OSGIServiceDescriptor desc, java.lang.String serviceName)
Copyright © 2010-2017. All Rights Reserved.