public class SingleModulesRegistry extends ModulesRegistryImpl
Modifier and Type | Field and Description |
---|---|
(package private) Module[] |
proxyMod |
(package private) java.lang.ClassLoader |
singleClassLoader |
modules, parent, providers, repositories
Constructor and Description |
---|
SingleModulesRegistry(java.lang.ClassLoader singleCL) |
SingleModulesRegistry(java.lang.ClassLoader singleCL,
java.util.List<ManifestProxy.SeparatorMappings> mappings) |
Modifier and Type | Method and Description |
---|---|
Module |
find(java.lang.Class clazz)
Finds the
Module that owns the given class. |
java.util.Collection<Module> |
getModules()
Returns the list of shared Modules registered in this instance.
|
java.util.Collection<Module> |
getModules(java.lang.String moduleName)
Returns the list of shared Modules registered in this instance whose name
matches the given name
|
Module |
makeModuleFor(java.lang.String name,
java.lang.String version,
boolean resolve)
Returns the
Module instance giving a name and version
constraints. |
protected java.util.List<ActiveDescriptor> |
parseInhabitants(Module module,
java.lang.String name,
ServiceLocator serviceLocator,
java.util.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
final java.lang.ClassLoader singleClassLoader
final Module[] proxyMod
public SingleModulesRegistry(java.lang.ClassLoader singleCL)
public SingleModulesRegistry(java.lang.ClassLoader singleCL, java.util.List<ManifestProxy.SeparatorMappings> mappings)
public Module find(java.lang.Class clazz)
ModulesRegistry
Module
that owns the given class.find
in interface ModulesRegistry
find
in class ModulesRegistryImpl
public java.util.Collection<Module> getModules(java.lang.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 java.util.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(java.lang.String name, java.lang.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 java.util.List<ActiveDescriptor> parseInhabitants(Module module, java.lang.String name, ServiceLocator serviceLocator, java.util.List<PopulatorPostProcessor> postProcessors) throws java.io.IOException
parseInhabitants
in class ModulesRegistryImpl
java.io.IOException