|
||||||||||
| 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.ClassPathBasedModulesRegistry
public class ClassPathBasedModulesRegistry
Implements a modules registry based on a class-path style of module description using a single class loader (capable of loading the entire class-path)
| Field Summary |
|---|
| Fields inherited from class com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl |
|---|
parent, providers, repositories |
| Constructor Summary | |
|---|---|
ClassPathBasedModulesRegistry(ClassLoader singleCL,
String classPath)
|
|
| 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. |
void |
parseInhabitants(Module module,
String name)
|
| 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, createServiceLocator, dumpState, getModulesProvider, getProvidersClass, getRepository, getRunningServices, initializeServiceLocator, loadFromRepository, makeModuleFor, makeModuleFor, newServiceLocator, newServiceLocator, 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 ClassPathBasedModulesRegistry(ClassLoader singleCL,
String classPath)
throws IOException
IOException| 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
public void parseInhabitants(Module module,
String name)
throws IOException
parseInhabitants in class ModulesRegistryImplIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||