org.jvnet.hk2.osgiadapter
Class OSGiObrModulesRegistryImpl
java.lang.Object
com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl
org.jvnet.hk2.osgiadapter.AbstractOSGiModulesRegistryImpl
org.jvnet.hk2.osgiadapter.OSGiObrModulesRegistryImpl
- All Implemented Interfaces:
- ModuleChangeListener, ModulesRegistry, EventListener, InhabitantsParserFactory, org.osgi.framework.BundleListener, org.osgi.framework.SynchronousBundleListener
public class OSGiObrModulesRegistryImpl
- extends AbstractOSGiModulesRegistryImpl
- implements org.osgi.framework.SynchronousBundleListener
- Author:
- Sanjeeb.Sahoo@Sun.COM
Methods inherited from class org.jvnet.hk2.osgiadapter.AbstractOSGiModulesRegistryImpl |
addModuleChangeListener, createChild, detachAll, find, getModulesClassLoader, getModulesClassLoader, getPackageAdmin, getParentClassLoader, parseInhabitants, register, removeModuleChangeListener, setParentClassLoader, unregister |
Methods inherited from class com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl |
add, add, add, changed, createInhabitantsParser, createServiceLocator, dumpState, getModules, getModules, getModulesProvider, getProvidersClass, getProvidingModule, getRepository, getRunningServices, initializeServiceLocator, makeModuleFor, makeModuleFor, makeModuleFor, newServiceLocator, newServiceLocator, populateConfig, populateServiceLocator, print, registerRunningService, remove, removeRepository, unregisterRunningService |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
addObr
public void addObr(URI obrUri)
throws Exception
- Throws:
Exception
addRepository
public void addRepository(Repository repository,
int weight)
- Description copied from class:
AbstractModulesRegistryImpl
- Add a new
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).
- Specified by:
addRepository
in interface ModulesRegistry
- Overrides:
addRepository
in class AbstractModulesRegistryImpl
- Parameters:
repository
- new repository to attach to this registryweight
- int value from 1 to 100 to specify the search order
addRepository
public void addRepository(Repository repository)
- Description copied from class:
AbstractModulesRegistryImpl
- Add a new
Repository
to this registry. From now on
the repository will be used to procure requested nodule not
registered in this instance.
- Specified by:
addRepository
in interface ModulesRegistry
- Overrides:
addRepository
in class AbstractModulesRegistryImpl
- Parameters:
repository
- new repository to attach to this registry
newModule
protected Module newModule(ModuleDefinition moduleDef)
- Description copied from class:
AbstractModulesRegistryImpl
- Factory method for creating new instances of Module.
- Specified by:
newModule
in class AbstractModulesRegistryImpl
- Parameters:
moduleDef
- module definition of the new module to be created
- Returns:
- a new Module instance
loadFromRepository
protected Module loadFromRepository(String name,
String version)
- Overrides:
loadFromRepository
in class AbstractModulesRegistryImpl
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event)
- Specified by:
bundleChanged
in interface org.osgi.framework.BundleListener
shutdown
public void shutdown()
- Description copied from interface:
ModulesRegistry
- Shuts down this module's registry, apply housekeeping tasks
- Specified by:
shutdown
in interface ModulesRegistry
- Overrides:
shutdown
in class AbstractOSGiModulesRegistryImpl
Copyright © 2013 Oracle Corporation. All Rights Reserved.