Top Description Fields Constructors Methods
com.sun.enterprise.module.single

public Class SingleModulesRegistry

extends ModulesRegistryImpl
Class Inheritance
Known Direct Subclasses
com.sun.enterprise.module.single.StaticModulesRegistry
Imports
com.sun.enterprise.module.*, com.sun.enterprise.module.impl.ModulesRegistryImpl, java.io.IOException, java.util.*, org.glassfish.hk2.api.ActiveDescriptor, .DynamicConfigurationService, .Populator, .PopulatorPostProcessor, .ServiceLocator, org.glassfish.hk2.bootstrap.impl.Hk2LoaderPopulatorPostProcessor, org.glassfish.hk2.utilities.ClasspathDescriptorFileFinder

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.
Author
Jerome Dochez

Field Summary

Modifier and TypeField and Description
pack-priv final HK2Module[]
pack-priv final ClassLoader

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public HK2Module
public Collection<HK2Module>
getModules(String moduleName)

Overrides com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.getModules.

Implements com.sun.enterprise.module.ModulesRegistry.getModules.

Returns the list of shared Modules registered in this instance whose name matches the given name

The returned list will not include the modules defined in the ancestor ModulesRegistrys.

public Collection<HK2Module>
public HK2Module
makeModuleFor(String name, String version, boolean resolve)

Overrides com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.makeModuleFor.

Implements com.sun.enterprise.module.ModulesRegistry.makeModuleFor.

Returns the HK2Module instance giving a name and version constraints.

protected List<ActiveDescriptor<T>>
Inherited from com.sun.enterprise.module.impl.ModulesRegistryImpl:
createChilddetachAllgetLifecycleListenersgetModulesClassLoadergetModulesClassLoadergetParentClassLoadergetProvidingModulenewModuleregistersetParentClassLoadershutdownunregister

Field Detail

proxyModback to summary
pack-priv final HK2Module[] proxyMod
singleClassLoaderback to summary
pack-priv final ClassLoader singleClassLoader

Constructor Detail

SingleModulesRegistryback to summary
public SingleModulesRegistry(ClassLoader singleCL)
SingleModulesRegistryback to summary
public SingleModulesRegistry(ClassLoader singleCL, List<ManifestProxy.SeparatorMappings> mappings)

Method Detail

findback to summary
public HK2Module find(Class<T> clazz)

Overrides com.sun.enterprise.module.impl.ModulesRegistryImpl.find.

Implements com.sun.enterprise.module.ModulesRegistry.find.

Doc from com.sun.enterprise.module.ModulesRegistry.find.

Finds the HK2Module that owns the given class.

Annotations
@Override
getModulesback to summary
public Collection<HK2Module> getModules(String moduleName)

Overrides com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.getModules.

Implements com.sun.enterprise.module.ModulesRegistry.getModules.

Doc from com.sun.enterprise.module.ModulesRegistry.getModules.

Returns the list of shared Modules registered in this instance whose name matches the given name

The returned list will not include the modules defined in the ancestor ModulesRegistrys.

Annotations
@Override
getModulesback to summary
public Collection<HK2Module> getModules()

Overrides com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.getModules.

Implements com.sun.enterprise.module.ModulesRegistry.getModules.

Doc from com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.getModules.

Returns the list of shared Modules registered in this instance.

The returned list will not include the modules defined in the ancestor AbstractModulesRegistryImpls.

Annotations
@Override
makeModuleForback to summary
public HK2Module makeModuleFor(String name, String version, boolean resolve) throws ResolveError

Overrides com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.makeModuleFor.

Implements com.sun.enterprise.module.ModulesRegistry.makeModuleFor.

Doc from com.sun.enterprise.module.ModulesRegistry.makeModuleFor.

Returns the HK2Module instance giving a name and version constraints.

Annotations
@Override
Exceptions
ResolveError:
if the module dependencies cannot be resolved
parseInhabitantsback to summary
protected List<ActiveDescriptor<T>> parseInhabitants(HK2Module module, String name, ServiceLocator serviceLocator, List<PopulatorPostProcessor> postProcessors) throws IOException

Overrides com.sun.enterprise.module.impl.ModulesRegistryImpl.parseInhabitants.

Annotations
@SuppressWarnings:rawtypes, unchecked
@Override