org.jvnet.hk2.osgiadapter
Class OSGiObrModulesRegistryImpl

java.lang.Object
  extended by com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl
      extended by org.jvnet.hk2.osgiadapter.AbstractOSGiModulesRegistryImpl
          extended by org.jvnet.hk2.osgiadapter.OSGiObrModulesRegistryImpl
All Implemented Interfaces:
ModuleChangeListener, ModulesRegistry, java.util.EventListener, org.osgi.framework.BundleListener, org.osgi.framework.SynchronousBundleListener

public class OSGiObrModulesRegistryImpl
extends AbstractOSGiModulesRegistryImpl
implements org.osgi.framework.SynchronousBundleListener

Author:
Sanjeeb.Sahoo@Sun.COM

Field Summary
 
Fields inherited from class org.jvnet.hk2.osgiadapter.AbstractOSGiModulesRegistryImpl
pa
 
Fields inherited from class com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl
modules, parent, providers, repositories
 
Method Summary
 void addObr(java.net.URI obrUri)
           
 void addRepository(Repository repository)
           
 void addRepository(Repository repository, int weight)
           
 void bundleChanged(org.osgi.framework.BundleEvent event)
           
protected  Module loadFromRepository(java.lang.String name, java.lang.String version)
           
protected  Module newModule(ModuleDefinition moduleDef)
           
 void shutdown()
           
 
Methods inherited from class org.jvnet.hk2.osgiadapter.AbstractOSGiModulesRegistryImpl
addModuleChangeListener, createChild, detachAll, find, getModulesClassLoader, getModulesClassLoader, getPackageAdmin, getParentClassLoader, parseInhabitants, register, remove, removeModuleChangeListener, setParentClassLoader, unregister
 
Methods inherited from class com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addObr

public void addObr(java.net.URI obrUri)
            throws java.lang.Exception
Throws:
java.lang.Exception

addRepository

public void addRepository(Repository repository,
                          int weight)
Specified by:
addRepository in interface ModulesRegistry
Overrides:
addRepository in class AbstractModulesRegistryImpl

addRepository

public void addRepository(Repository repository)
Specified by:
addRepository in interface ModulesRegistry
Overrides:
addRepository in class AbstractModulesRegistryImpl

newModule

protected Module newModule(ModuleDefinition moduleDef)
Specified by:
newModule in class AbstractModulesRegistryImpl

loadFromRepository

protected Module loadFromRepository(java.lang.String name,
                                    java.lang.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()
Specified by:
shutdown in interface ModulesRegistry
Overrides:
shutdown in class AbstractOSGiModulesRegistryImpl


Copyright © 2013 Oracle Corporation. All Rights Reserved.