com.sun.enterprise.module.single
Class StaticModulesRegistry

java.lang.Object
  extended by com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl
      extended by com.sun.enterprise.module.impl.ModulesRegistryImpl
          extended by com.sun.enterprise.module.single.SingleModulesRegistry
              extended by com.sun.enterprise.module.single.StaticModulesRegistry
All Implemented Interfaces:
ModuleChangeListener, ModulesRegistry, InhabitantsParserFactory

public class StaticModulesRegistry
extends SingleModulesRegistry

Implementation of the modules registry that use a single class loader to load all available classes. 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
 
Fields inherited from class com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl
modules, parent, providers, repositories
 
Constructor Summary
StaticModulesRegistry(ClassLoader singleCL)
           
StaticModulesRegistry(ClassLoader singleCL, List<ManifestProxy.SeparatorMappings> mappings, StartupContext startupContext)
           
StaticModulesRegistry(ClassLoader singleCL, StartupContext startupContext)
           
 
Method Summary
 ServiceLocator createServiceLocator(String name)
          Creates a ServiceLocator from all the modules in this registry Cal;ling this method has the same effect of calling ModulesRegistry.newServiceLocator() followed by ModulesRegistry.populateServiceLocator(String, ServiceLocator).
protected  void populateConfig(ServiceLocator serviceLocator)
           
 
Methods inherited from class com.sun.enterprise.module.single.SingleModulesRegistry
find, getModules, getModules, makeModuleFor, parseInhabitants
 
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, dumpState, getModulesProvider, getProvidersClass, getRepository, getRunningServices, initializeServiceLocator, loadFromRepository, makeModuleFor, makeModuleFor, newServiceLocator, newServiceLocator, 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

StaticModulesRegistry

public StaticModulesRegistry(ClassLoader singleCL)

StaticModulesRegistry

public StaticModulesRegistry(ClassLoader singleCL,
                             StartupContext startupContext)

StaticModulesRegistry

public StaticModulesRegistry(ClassLoader singleCL,
                             List<ManifestProxy.SeparatorMappings> mappings,
                             StartupContext startupContext)
Method Detail

populateConfig

protected void populateConfig(ServiceLocator serviceLocator)
                       throws BootException
Overrides:
populateConfig in class AbstractModulesRegistryImpl
Throws:
BootException

createServiceLocator

public ServiceLocator createServiceLocator(String name)
                                    throws ComponentException
Description copied from interface: ModulesRegistry
Creates a ServiceLocator from all the modules in this registry Cal;ling this method has the same effect of calling ModulesRegistry.newServiceLocator() followed by ModulesRegistry.populateServiceLocator(String, ServiceLocator).

Specified by:
createServiceLocator in interface ModulesRegistry
Overrides:
createServiceLocator in class AbstractModulesRegistryImpl
Parameters:
name - Determines which inhabitants descriptors are loaded. (so that different parallel habitats can be created over the same modules registry.)
Throws:
ComponentException


Copyright © 2013 Oracle Corporation. All Rights Reserved.