Class StaticModulesRegistry
java.lang.Object
com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl
com.sun.enterprise.module.impl.ModulesRegistryImpl
com.sun.enterprise.module.single.SingleModulesRegistry
com.sun.enterprise.module.single.StaticModulesRegistry
- All Implemented Interfaces:
ModuleChangeListener, ModulesRegistry
Implementation of the modules registry that use a single class loader to load
all available classes. There is one virtual module available in the modules
registry and that module's class loader is the single class loader used to
load all artifacts.
-
Field Summary
FieldsFields inherited from class SingleModulesRegistry
proxyMod, singleClassLoaderFields inherited from class AbstractModulesRegistryImpl
modules, parent, providers, repositories -
Constructor Summary
ConstructorsConstructorDescriptionStaticModulesRegistry(ClassLoader singleCL) StaticModulesRegistry(ClassLoader singleCL, StartupContext startupContext) StaticModulesRegistry(ClassLoader singleCL, List<ManifestProxy.SeparatorMappings> mappings, StartupContext startupContext) -
Method Summary
Modifier and TypeMethodDescriptioncreateServiceLocator(String name) Creates aServiceLocatorfrom all the modules in this registry Cal;ling this method has the same effect of callingModulesRegistry.newServiceLocator()followed by}.invalid @link
{@link #populateServiceLocator(String, org.glassfish.hk2.api.ServiceLocator, java.util.ListvoidpopulateConfig(ServiceLocator serviceLocator) Methods inherited from class SingleModulesRegistry
find, getModules, getModules, makeModuleFor, parseInhabitantsMethods inherited from class ModulesRegistryImpl
createChild, detachAll, getLifecycleListeners, getModulesClassLoader, getModulesClassLoader, getParentClassLoader, getProvidingModule, newModule, register, setParentClassLoader, shutdown, unregisterMethods inherited from class AbstractModulesRegistryImpl
add, add, add, addRepository, addRepository, changed, createServiceLocator, createServiceLocator, dumpState, getAllServiceLocators, getModulesProvider, getProvidersClass, getRepository, getRunningServices, initializeServiceLocator, loadFromRepository, makeModuleFor, makeModuleFor, newServiceLocator, newServiceLocator, populateServiceLocator, print, registerRunningService, remove, removeRepository, unregisterRunningService
-
Field Details
-
startupContext
-
-
Constructor Details
-
StaticModulesRegistry
-
StaticModulesRegistry
-
StaticModulesRegistry
public StaticModulesRegistry(ClassLoader singleCL, List<ManifestProxy.SeparatorMappings> mappings, StartupContext startupContext)
-
-
Method Details
-
populateConfig
- Specified by:
populateConfigin interfaceModulesRegistry- Overrides:
populateConfigin classAbstractModulesRegistryImpl
-
createServiceLocator
Description copied from interface:ModulesRegistryCreates aServiceLocatorfrom all the modules in this registry Cal;ling this method has the same effect of callingModulesRegistry.newServiceLocator()followed by}.invalid @link
{@link #populateServiceLocator(String, org.glassfish.hk2.api.ServiceLocator, java.util.List- Specified by:
createServiceLocatorin interfaceModulesRegistry- Overrides:
createServiceLocatorin classAbstractModulesRegistryImpl- Parameters:
name- Determines which inhabitants descriptors are loaded. (so that different parallel habitats can be created over the same modules registry.)- Throws:
MultiException
-