org.jvnet.hk2.osgiadapter
Class OSGiModulesRegistryImpl

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.OSGiModulesRegistryImpl
All Implemented Interfaces:
ModuleChangeListener, ModulesRegistry, EventListener, InhabitantsParserFactory, org.osgi.framework.BundleListener, org.osgi.framework.SynchronousBundleListener

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

This is an implementation of ModulesRegistry. It uses OSGi extender pattern to do necessary parsing of OSGi bundles.

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
protected  void add(Module newModule)
           
 void bundleChanged(org.osgi.framework.BundleEvent event)
           
protected  String getProperty(String property)
           
protected  Module newModule(ModuleDefinition moduleDef)
           
 void remove(Module module)
           
 void shutdown()
           
 
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, addRepository, addRepository, changed, createInhabitantsParser, createServiceLocator, createServiceLocator, dumpState, getModules, getModules, getModulesProvider, getProvidersClass, getProvidingModule, getRepository, getRunningServices, initializeServiceLocator, loadFromRepository, makeModuleFor, makeModuleFor, makeModuleFor, newServiceLocator, newServiceLocator, print, registerRunningService, removeRepository, unregisterRunningService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

bundleChanged

public void bundleChanged(org.osgi.framework.BundleEvent event)
Specified by:
bundleChanged in interface org.osgi.framework.BundleListener

add

protected void add(Module newModule)
Overrides:
add in class AbstractModulesRegistryImpl

remove

public void remove(Module module)
Overrides:
remove in class AbstractModulesRegistryImpl

newModule

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

shutdown

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

getProperty

protected String getProperty(String property)


Copyright © 2012 Oracle Corporation. All Rights Reserved.