public class StaticModulesRegistry extends SingleModulesRegistry
modules, parent, providers, repositories
Constructor and Description |
---|
StaticModulesRegistry(ClassLoader singleCL) |
StaticModulesRegistry(ClassLoader singleCL,
List<ManifestProxy.SeparatorMappings> mappings,
StartupContext startupContext) |
StaticModulesRegistry(ClassLoader singleCL,
StartupContext startupContext) |
Modifier and Type | Method and Description |
---|---|
ServiceLocator |
createServiceLocator(String name)
Creates a
ServiceLocator from all the modules in this registry
Cal;ling this method has the same effect of calling ModulesRegistry.newServiceLocator() followed by
#populateServiceLocator(String, org.glassfish.hk2.api.ServiceLocator, java.util.List . |
void |
populateConfig(ServiceLocator serviceLocator) |
find, getModules, getModules, makeModuleFor, parseInhabitants
createChild, detachAll, getLifecycleListeners, getModulesClassLoader, getModulesClassLoader, getParentClassLoader, getProvidingModule, newModule, register, setParentClassLoader, shutdown, unregister
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
public StaticModulesRegistry(ClassLoader singleCL)
public StaticModulesRegistry(ClassLoader singleCL, StartupContext startupContext)
public StaticModulesRegistry(ClassLoader singleCL, List<ManifestProxy.SeparatorMappings> mappings, StartupContext startupContext)
public void populateConfig(ServiceLocator serviceLocator)
populateConfig
in interface ModulesRegistry
populateConfig
in class AbstractModulesRegistryImpl
public ServiceLocator createServiceLocator(String name) throws MultiException
ModulesRegistry
ServiceLocator
from all the modules in this registry
Cal;ling this method has the same effect of calling ModulesRegistry.newServiceLocator()
followed by
#populateServiceLocator(String, org.glassfish.hk2.api.ServiceLocator, java.util.List
.createServiceLocator
in interface ModulesRegistry
createServiceLocator
in class AbstractModulesRegistryImpl
name
- Determines which inhabitants descriptors are loaded.
(so that different parallel habitats can be
created over the same modules registry.)MultiException
Copyright © 2009–2023 Oracle Corporation. All rights reserved.