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, 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
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, dumpState, getModules, getModules, getModulesProvider, getProvidersClass, getProvidingModule, getRepository, getRunningServices, initializeServiceLocator, loadFromRepository, 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 |
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event)
- Specified by:
bundleChanged
in interface org.osgi.framework.BundleListener
add
protected void add(Module newModule)
- Description copied from class:
AbstractModulesRegistryImpl
- Add a new module to this registry. Once added, the module will be
available through one of the getServiceImplementor methods.
- Overrides:
add
in class AbstractModulesRegistryImpl
- Parameters:
newModule
- the new module
remove
public void remove(Module module)
- Description copied from class:
AbstractModulesRegistryImpl
- Removes a module from the registry. The module will not be accessible
from this registry after this method returns.
- Overrides:
remove
in class AbstractModulesRegistryImpl
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
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
getProperty
protected String getProperty(String property)
Copyright © 2013 Oracle Corporation. All Rights Reserved.