public class OSGiObrModulesRegistryImpl extends AbstractOSGiModulesRegistryImpl implements org.osgi.framework.SynchronousBundleListener
pa
modules, parent, providers, repositories
Modifier and Type | Method and Description |
---|---|
void |
addObr(URI obrUri) |
void |
addRepository(Repository repository)
Add a new
Repository to this registry. |
void |
addRepository(Repository repository,
int weight)
Add a new
Repository to this registry. |
void |
bundleChanged(org.osgi.framework.BundleEvent event) |
protected Module |
loadFromRepository(String name,
String version) |
protected Module |
newModule(ModuleDefinition moduleDef)
Factory method for creating new instances of Module.
|
void |
shutdown()
Shuts down this module's registry, apply housekeeping tasks
|
addModuleChangeListener, createChild, detachAll, find, getModulesClassLoader, getModulesClassLoader, getPackageAdmin, getParentClassLoader, parseInhabitants, register, remove, removeModuleChangeListener, setParentClassLoader, unregister
add, add, add, changed, createServiceLocator, createServiceLocator, createServiceLocator, dumpState, getAllServiceLocators, getModules, getModules, getModulesProvider, getProvidersClass, getProvidingModule, getRepository, getRunningServices, initializeServiceLocator, makeModuleFor, makeModuleFor, makeModuleFor, newServiceLocator, newServiceLocator, populateConfig, populateServiceLocator, print, registerRunningService, removeRepository, unregisterRunningService
public void addRepository(Repository repository, int weight)
AbstractModulesRegistryImpl
Repository
to this registry. From now on
the repository will be used to procure requested module not yet registered
in this registry instance. Repository can be searched in a particular
order (to accomodate performance requirements like looking at local
repositories first), a search order (1 to 100) can be specified when
adding a repository to the registry (1 is highest priority).addRepository
in interface ModulesRegistry
addRepository
in class AbstractModulesRegistryImpl
repository
- new repository to attach to this registryweight
- int value from 1 to 100 to specify the search orderpublic void addRepository(Repository repository)
AbstractModulesRegistryImpl
Repository
to this registry. From now on
the repository will be used to procure requested nodule not
registered in this instance.addRepository
in interface ModulesRegistry
addRepository
in class AbstractModulesRegistryImpl
repository
- new repository to attach to this registryprotected Module newModule(ModuleDefinition moduleDef)
AbstractModulesRegistryImpl
newModule
in class AbstractModulesRegistryImpl
moduleDef
- module definition of the new module to be createdprotected Module loadFromRepository(String name, String version)
loadFromRepository
in class AbstractModulesRegistryImpl
public void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged
in interface org.osgi.framework.BundleListener
public void shutdown()
ModulesRegistry
shutdown
in interface ModulesRegistry
shutdown
in class AbstractOSGiModulesRegistryImpl
Copyright © 2009–2023 Oracle Corporation. All rights reserved.