public class OSGiObrModulesRegistryImpl extends AbstractOSGiModulesRegistryImpl implements org.osgi.framework.SynchronousBundleListener
pamodules, 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, unregisteradd, 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, unregisterRunningServicepublic void addRepository(Repository repository, int weight)
AbstractModulesRegistryImplRepository 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 ModulesRegistryaddRepository in class AbstractModulesRegistryImplrepository - new repository to attach to this registryweight - int value from 1 to 100 to specify the search orderpublic void addRepository(Repository repository)
AbstractModulesRegistryImplRepository to this registry. From now on
the repository will be used to procure requested nodule not
registered in this instance.addRepository in interface ModulesRegistryaddRepository in class AbstractModulesRegistryImplrepository - new repository to attach to this registryprotected Module newModule(ModuleDefinition moduleDef)
AbstractModulesRegistryImplnewModule in class AbstractModulesRegistryImplmoduleDef - module definition of the new module to be createdprotected Module loadFromRepository(String name, String version)
loadFromRepository in class AbstractModulesRegistryImplpublic void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged in interface org.osgi.framework.BundleListenerpublic void shutdown()
ModulesRegistryshutdown in interface ModulesRegistryshutdown in class AbstractOSGiModulesRegistryImplCopyright © 2014 Oracle Corporation. All rights reserved.