public class SingleModulesRegistry extends ModulesRegistryImpl
modules, parent, providers, repositories
Constructor and Description |
---|
SingleModulesRegistry(ClassLoader singleCL) |
SingleModulesRegistry(ClassLoader singleCL,
List<ManifestProxy.SeparatorMappings> mappings) |
Modifier and Type | Method and Description |
---|---|
Module |
find(Class clazz)
Finds the
Module that owns the given class. |
Collection<Module> |
getModules()
Returns the list of shared Modules registered in this instance.
|
Collection<Module> |
getModules(String moduleName)
Returns the list of shared Modules registered in this instance whose name
matches the given name
|
Module |
makeModuleFor(String name,
String version,
boolean resolve)
Returns the
Module instance giving a name and version
constraints. |
protected List<ActiveDescriptor> |
parseInhabitants(Module module,
String name,
ServiceLocator serviceLocator,
List<PopulatorPostProcessor> postProcessors) |
createChild, detachAll, getLifecycleListeners, getModulesClassLoader, getModulesClassLoader, getParentClassLoader, getProvidingModule, newModule, register, setParentClassLoader, shutdown, unregister
add, add, add, addRepository, addRepository, changed, createServiceLocator, createServiceLocator, createServiceLocator, dumpState, getAllServiceLocators, getModulesProvider, getProvidersClass, getRepository, getRunningServices, initializeServiceLocator, loadFromRepository, makeModuleFor, makeModuleFor, newServiceLocator, newServiceLocator, populateConfig, populateServiceLocator, print, registerRunningService, remove, removeRepository, unregisterRunningService
public SingleModulesRegistry(ClassLoader singleCL)
public SingleModulesRegistry(ClassLoader singleCL, List<ManifestProxy.SeparatorMappings> mappings)
public Module find(Class clazz)
ModulesRegistry
Module
that owns the given class.find
in interface ModulesRegistry
find
in class ModulesRegistryImpl
public Collection<Module> getModules(String moduleName)
ModulesRegistry
The returned list will not include the modules defined in the ancestor
ModulesRegistry
s.
getModules
in interface ModulesRegistry
getModules
in class AbstractModulesRegistryImpl
public Collection<Module> getModules()
AbstractModulesRegistryImpl
The returned list will not include the modules defined in the ancestor
AbstractModulesRegistryImpl
s.
getModules
in interface ModulesRegistry
getModules
in class AbstractModulesRegistryImpl
public Module makeModuleFor(String name, String version, boolean resolve) throws ResolveError
ModulesRegistry
Module
instance giving a name and version
constraints.makeModuleFor
in interface ModulesRegistry
makeModuleFor
in class AbstractModulesRegistryImpl
name
- the module nameversion
- the module version. Caller should specify a correct version.resolve
- should the module be resolved or notResolveError
- if the module dependencies cannot be resolvedprotected List<ActiveDescriptor> parseInhabitants(Module module, String name, ServiceLocator serviceLocator, List<PopulatorPostProcessor> postProcessors) throws IOException
parseInhabitants
in class ModulesRegistryImpl
IOException
Copyright © 2009–2023 Oracle Corporation. All rights reserved.