public class FileRegistry extends AbstractRegistry
It needs only one parameter during initialization: the bundles file path. This file must contain a
BundleActivator
list (classname and parameter pairs).
The classname is the fully qualified name of the BundleActivator
implementation. The parameter is a string
that will be passed to the AbstractRegistry.initialize()
, AbstractRegistry.link()
, AbstractRegistry.start()
and AbstractRegistry.stop()
methods of
the BundleActivator
. The classname and the parameter must be separated by a ':
'.
BundleActivator.State
Constructor and Description |
---|
FileRegistry()
Creates a file registry.
|
FileRegistry(String file)
Creates a file registry specifying the path to the file containing the list of bundles.
|
Modifier and Type | Method and Description |
---|---|
protected BundleActivator[] |
loadBundles()
Gets the loaded bundles.
|
getCurrentState, getService, initialize, link, register, reset, start, stop
public FileRegistry()
public FileRegistry(String file)
file
- the path to the bundles list file.protected BundleActivator[] loadBundles()
AbstractRegistry
loadBundles
in class AbstractRegistry