|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl
com.sun.enterprise.module.impl.ModulesRegistryImpl
com.sun.enterprise.module.single.SingleModulesRegistry
public class SingleModulesRegistry
Normal modules registry with configuration handling backed up by a single class loader. There is one virtual module available in the modules registry and that module's class loader is the single class loader used to load all artifacts.
Field Summary |
---|
Fields inherited from class com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl |
---|
modules, parent, providers, repositories |
Constructor Summary | |
---|---|
SingleModulesRegistry(ClassLoader singleCL)
|
|
SingleModulesRegistry(ClassLoader singleCL,
List<ManifestProxy.SeparatorMappings> mappings)
|
Method Summary | |
---|---|
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 void |
parseInhabitants(Module module,
String name,
ServiceLocator serviceLocator)
|
Methods inherited from class com.sun.enterprise.module.impl.ModulesRegistryImpl |
---|
createChild, detachAll, getLifecycleListeners, getModulesClassLoader, getModulesClassLoader, getParentClassLoader, getProvidingModule, newModule, register, setParentClassLoader, shutdown, unregister |
Methods inherited from class com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl |
---|
add, add, add, addRepository, addRepository, changed, createInhabitantsParser, createServiceLocator, dumpState, getModulesProvider, getProvidersClass, getRepository, getRunningServices, initializeServiceLocator, loadFromRepository, makeModuleFor, makeModuleFor, newServiceLocator, newServiceLocator, populateConfig, populateServiceLocator, print, registerRunningService, remove, removeRepository, unregisterRunningService |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingleModulesRegistry(ClassLoader singleCL)
public SingleModulesRegistry(ClassLoader singleCL, List<ManifestProxy.SeparatorMappings> mappings)
Method Detail |
---|
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 not
ResolveError
- if the module dependencies cannot be resolvedprotected void parseInhabitants(Module module, String name, ServiceLocator serviceLocator) throws IOException
parseInhabitants
in class ModulesRegistryImpl
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |