public class StaticModulesRegistry extends SingleModulesRegistry
modules, parent, providers, repositories| Constructor and Description |
|---|
StaticModulesRegistry(java.lang.ClassLoader singleCL) |
StaticModulesRegistry(java.lang.ClassLoader singleCL,
java.util.List<ManifestProxy.SeparatorMappings> mappings,
StartupContext startupContext) |
StaticModulesRegistry(java.lang.ClassLoader singleCL,
StartupContext startupContext) |
| Modifier and Type | Method and Description |
|---|---|
ServiceLocator |
createServiceLocator(java.lang.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, 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(java.lang.ClassLoader singleCL)
public StaticModulesRegistry(java.lang.ClassLoader singleCL,
StartupContext startupContext)
public StaticModulesRegistry(java.lang.ClassLoader singleCL,
java.util.List<ManifestProxy.SeparatorMappings> mappings,
StartupContext startupContext)
public void populateConfig(ServiceLocator serviceLocator)
populateConfig in interface ModulesRegistrypopulateConfig in class AbstractModulesRegistryImplpublic ServiceLocator createServiceLocator(java.lang.String name) throws 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.)MultiExceptionCopyright © 2013 Oracle Corporation. All Rights Reserved.