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 |
|---|---|
org.glassfish.hk2.api.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(org.glassfish.hk2.api.ServiceLocator serviceLocator) |
find, getModules, getModules, makeModuleFor, parseInhabitantscreateChild, detachAll, getLifecycleListeners, getModulesClassLoader, getModulesClassLoader, getParentClassLoader, getProvidingModule, newModule, register, setParentClassLoader, shutdown, unregisteradd, add, add, addRepository, addRepository, changed, createServiceLocator, createServiceLocator, dumpState, getAllServiceLocators, getModulesProvider, getProvidersClass, getRepository, getRunningServices, initializeServiceLocator, loadFromRepository, makeModuleFor, makeModuleFor, newServiceLocator, newServiceLocator, populateServiceLocator, print, registerRunningService, remove, removeRepository, unregisterRunningServicepublic StaticModulesRegistry(ClassLoader singleCL)
public StaticModulesRegistry(ClassLoader singleCL, StartupContext startupContext)
public StaticModulesRegistry(ClassLoader singleCL, List<ManifestProxy.SeparatorMappings> mappings, StartupContext startupContext)
public void populateConfig(org.glassfish.hk2.api.ServiceLocator serviceLocator)
populateConfig in interface ModulesRegistrypopulateConfig in class AbstractModulesRegistryImplpublic org.glassfish.hk2.api.ServiceLocator createServiceLocator(String name) throws org.glassfish.hk2.api.MultiException
ModulesRegistryServiceLocator 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 ModulesRegistrycreateServiceLocator in class AbstractModulesRegistryImplname - Determines which inhabitants descriptors are loaded.
(so that different parallel habitats can be
created over the same modules registry.)org.glassfish.hk2.api.MultiExceptionCopyright © 2009-2015 Oracle Corporation. All Rights Reserved.