public class BundleRegistryHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static BundleRegistry |
getRegistry()
Gets the registry declared as provider of the bundle registry service.
|
static BundleActivator |
loadBundle(java.lang.String className)
Loads a bundle from a class name.
|
static void |
startup(BundleActivator bundle)
Initializes, links and starts a bundle.
|
static void |
startupRegistry()
Initializes, links and starts the registry.
|
public static void startupRegistry()
getRegistry()
@Nullable public static BundleRegistry getRegistry()
ServiceLoaderFactory.getServiceLoader()
,
ServiceLoader.getService(Class)
public static void startup(BundleActivator bundle)
bundle
- the bundle to initialize.public static BundleActivator loadBundle(java.lang.String className)
className
- the name of the class to load.