public class ClassPathBasedModulesRegistry extends ModulesRegistryImpl
parent, providers, repositories| Constructor and Description |
|---|
ClassPathBasedModulesRegistry(ClassLoader singleCL,
String classPath) |
| 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<org.glassfish.hk2.api.ActiveDescriptor> |
parseInhabitants(Module module,
String name,
org.glassfish.hk2.api.ServiceLocator serviceLocator,
List<org.glassfish.hk2.api.PopulatorPostProcessor> postProcessors) |
createChild, detachAll, getLifecycleListeners, getModulesClassLoader, getModulesClassLoader, getParentClassLoader, getProvidingModule, newModule, register, setParentClassLoader, shutdown, unregisteradd, 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, unregisterRunningServicepublic ClassPathBasedModulesRegistry(ClassLoader singleCL, String classPath) throws IOException
IOExceptionpublic 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 AbstractModulesRegistryImplpublic 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 notResolveError - if the module dependencies cannot be resolvedprotected List<org.glassfish.hk2.api.ActiveDescriptor> parseInhabitants(Module module, String name, org.glassfish.hk2.api.ServiceLocator serviceLocator, List<org.glassfish.hk2.api.PopulatorPostProcessor> postProcessors) throws IOException
parseInhabitants in class ModulesRegistryImplIOExceptionCopyright © 2009-2013 Oracle Corporation. All Rights Reserved.