Package org.jvnet.hk2.osgiadapter
Class OSGiModulesRegistryImpl
java.lang.Object
com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl
org.jvnet.hk2.osgiadapter.AbstractOSGiModulesRegistryImpl
org.jvnet.hk2.osgiadapter.OSGiModulesRegistryImpl
- All Implemented Interfaces:
ModuleChangeListener,ModulesRegistry,EventListener,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
paFields inherited from class com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl
modules, parent, providers, repositories -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidbundleChanged(org.osgi.framework.BundleEvent event) protected StringgetProperty(String property) protected HK2ModulenewModule(ModuleDefinition moduleDef) voidvoidshutdown()Methods inherited from class org.jvnet.hk2.osgiadapter.AbstractOSGiModulesRegistryImpl
addModuleChangeListener, createChild, detachAll, find, getModulesClassLoader, getModulesClassLoader, getPackageAdmin, getParentClassLoader, parseInhabitants, register, removeModuleChangeListener, setParentClassLoader, unregisterMethods inherited from class com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl
add, add, addRepository, addRepository, changed, createServiceLocator, createServiceLocator, createServiceLocator, dumpState, getAllServiceLocators, getModules, getModules, getModulesProvider, getProvidersClass, getProvidingModule, getRepository, getRunningServices, initializeServiceLocator, loadFromRepository, makeModuleFor, makeModuleFor, makeModuleFor, newServiceLocator, newServiceLocator, populateConfig, populateServiceLocator, print, registerRunningService, removeRepository, unregisterRunningService
-
Method Details
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event) - Specified by:
bundleChangedin interfaceorg.osgi.framework.BundleListener
-
add
- Overrides:
addin classAbstractModulesRegistryImpl
-
remove
- Overrides:
removein classAbstractOSGiModulesRegistryImpl
-
newModule
- Specified by:
newModulein classAbstractModulesRegistryImpl
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceModulesRegistry- Overrides:
shutdownin classAbstractOSGiModulesRegistryImpl
-
getProperty
-