public class BundleRegistryHelper extends Object
Modifier and Type | Method and Description |
---|---|
static BundleRegistry |
getRegistry()
Gets the registry declared as provider of the bundle registry service.
|
static BundleActivator |
loadBundle(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 BundleRegistry getRegistry()
ServiceLoaderFactory.getServiceLoader()
,
ServiceLoader.getService(Class)
public static BundleActivator loadBundle(String className)
className
- the name of the class to load.public static void startup(BundleActivator bundle)
bundle
- the bundle to initialize.public static void startupRegistry()
getRegistry()