public class OSGiModulesRegistryImpl extends AbstractOSGiModulesRegistryImpl implements org.osgi.framework.SynchronousBundleListener
ModulesRegistry
.
It uses OSGi extender pattern to do necessary parsing of OSGi bundles.pa
modules, parent, providers, repositories
Modifier and Type | Method and Description |
---|---|
protected void |
add(Module newModule)
Add a new module to this registry.
|
void |
bundleChanged(org.osgi.framework.BundleEvent event) |
protected String |
getProperty(String property) |
protected Module |
newModule(ModuleDefinition moduleDef)
Factory method for creating new instances of Module.
|
void |
remove(Module module)
Removes a module from the registry.
|
void |
shutdown()
Shuts down this module's registry, apply housekeeping tasks
|
addModuleChangeListener, createChild, detachAll, find, getModulesClassLoader, getModulesClassLoader, getPackageAdmin, getParentClassLoader, parseInhabitants, register, removeModuleChangeListener, setParentClassLoader, unregister
add, add, addRepository, addRepository, changed, createServiceLocator, createServiceLocator, createServiceLocator, dumpState, getAllServiceLocators, getModules, getModules, getModulesProvider, getProvidersClass, getProvidingModule, getRepository, getRunningServices, initializeServiceLocator, loadFromRepository, makeModuleFor, makeModuleFor, makeModuleFor, newServiceLocator, newServiceLocator, populateConfig, populateServiceLocator, print, registerRunningService, removeRepository, unregisterRunningService
public void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged
in interface org.osgi.framework.BundleListener
protected void add(Module newModule)
AbstractModulesRegistryImpl
add
in class AbstractModulesRegistryImpl
newModule
- the new modulepublic void remove(Module module)
AbstractModulesRegistryImpl
remove
in class AbstractOSGiModulesRegistryImpl
protected Module newModule(ModuleDefinition moduleDef)
AbstractModulesRegistryImpl
newModule
in class AbstractModulesRegistryImpl
moduleDef
- module definition of the new module to be createdpublic void shutdown()
ModulesRegistry
shutdown
in interface ModulesRegistry
shutdown
in class AbstractOSGiModulesRegistryImpl
Copyright © 2009–2023 Oracle Corporation. All rights reserved.