|
||||||||||
| 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 List<ActiveDescriptor> |
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, createServiceLocator, createServiceLocator, 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)
ModulesRegistryModule that owns the given class.
find in interface ModulesRegistryfind in class ModulesRegistryImplpublic Collection<Module> getModules(String moduleName)
ModulesRegistry
The returned list will not include the modules defined in the ancestor
ModulesRegistrys.
getModules in interface ModulesRegistrygetModules in class AbstractModulesRegistryImplpublic Collection<Module> getModules()
AbstractModulesRegistryImpl
The returned list will not include the modules defined in the ancestor
AbstractModulesRegistryImpls.
getModules in interface ModulesRegistrygetModules in class AbstractModulesRegistryImpl
public Module makeModuleFor(String name,
String version,
boolean resolve)
throws ResolveError
ModulesRegistryModule instance giving a name and version
constraints.
makeModuleFor in interface ModulesRegistrymakeModuleFor in class AbstractModulesRegistryImplname - 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 resolved
protected List<ActiveDescriptor> parseInhabitants(Module module,
String name,
ServiceLocator serviceLocator)
throws IOException
parseInhabitants in class ModulesRegistryImplIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||