org.jvnet.hk2.osgiadapter
Class OSGiObrModulesRegistryImpl

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

public class OSGiObrModulesRegistryImpl
extends OSGiModulesRegistryImpl

Author:
Sanjeeb.Sahoo@Sun.COM

Field Summary
 
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.OSGiModulesRegistryImpl
add, 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, changed, createHabitat, createHabitat, createHabitat, createInhabitantsParser, dumpState, getModules, getModules, getModulesProvider, getProvidersClass, getProvidingModule, getRepository, getRunningServices, initializeHabitat, makeModuleFor, makeModuleFor, makeModuleFor, newHabitat, newHabitat, populateConfig, 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)
Overrides:
newModule in class OSGiModulesRegistryImpl

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
Overrides:
bundleChanged in class OSGiModulesRegistryImpl

shutdown

public void shutdown()
Specified by:
shutdown in interface ModulesRegistry
Overrides:
shutdown in class OSGiModulesRegistryImpl


Copyright © 2012 Oracle Corporation. All Rights Reserved.