Package | Description |
---|---|
com.sun.enterprise.module | |
com.sun.enterprise.module.common_impl | |
com.sun.enterprise.module.impl | |
com.sun.enterprise.module.single |
Modifier and Type | Method and Description |
---|---|
Module |
ModulesRegistry.add(ModuleDefinition info)
Registers a new DefaultModuleDefinition in this registry.
|
Module |
ModulesRegistry.add(ModuleDefinition info,
boolean resolve)
Registers a new DefaultModuleDefinition in this registry.
|
Module |
Module.addImport(ModuleDependency dependency)
Create and add a new module to this module's list of
imports.
|
Module |
ModulesRegistry.find(java.lang.Class clazz)
Finds the
Module that owns the given class. |
Module |
ModulesRegistry.getProvidingModule(java.lang.String providerClassName)
Gets the
Module that provides the provider of the given name. |
Module |
ModulesRegistry.makeModuleFor(java.lang.String packageName)
Find and return a loaded Module that has the package name in its list
of exported interfaces.
|
Module |
ModulesRegistry.makeModuleFor(java.lang.String name,
java.lang.String version)
Returns the
Module instance giving a name and version
constraints. |
Module |
ModulesRegistry.makeModuleFor(java.lang.String name,
java.lang.String version,
boolean resolve)
Returns the
Module instance giving a name and version
constraints. |
Modifier and Type | Method and Description |
---|---|
java.util.List<Module> |
Module.getImports()
Returns the list of imported modules.
|
java.util.Collection<Module> |
ModulesRegistry.getModules()
Returns the list of shared Modules registered in this instance.
|
java.util.Collection<Module> |
ModulesRegistry.getModules(java.lang.String moduleName)
Returns the list of shared Modules registered in this instance whose name
matches the given name
|
java.lang.Iterable<Module> |
ModulesRegistry.getModulesProvider(java.lang.Class serviceClass)
Returns a collection of Module containing at least one implementation
of the passed service interface class.
|
Modifier and Type | Method and Description |
---|---|
void |
Module.addImport(Module module) |
void |
ModuleChangeListener.changed(Module sender)
a module has detected that one or more of its resources (classes, jar...)
has changed and should be reloaded.
|
void |
ModuleLifecycleListener.moduleInstalled(Module module)
Callback after a module is installed
|
void |
ModuleLifecycleListener.moduleResolved(Module module)
Callback after a module is resolved
|
void |
ModuleLifecycleListener.moduleStarted(Module module)
Callback after a module is started.
|
void |
ModuleLifecycleListener.moduleStopped(Module module)
Callback after a module is stopped
|
void |
ModuleLifecycleListener.moduleUpdated(Module module)
Callback after a module is updated.
|
void |
ImportPolicy.prepare(Module module)
callback from the module loading system when the module enters the
PREPARING phase. |
void |
LifecyclePolicy.start(Module module)
Callback when the module enters the
READY state. |
void |
LifecyclePolicy.stop(Module module)
Callback before the module starts being unloaded.
|
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Map<Module,java.util.Map<ServiceLocator,java.util.List<ActiveDescriptor>>> |
AbstractModulesRegistryImpl.moduleDescriptors |
protected java.util.concurrent.ConcurrentMap<ModuleId,Module> |
AbstractModulesRegistryImpl.modules |
protected java.util.Map<java.lang.String,Module> |
AbstractModulesRegistryImpl.providers
Service provider class names and which modules they are in.
|
Modifier and Type | Method and Description |
---|---|
Module |
AbstractModulesRegistryImpl.add(ModuleDefinition info)
Registers a new DefaultModuleDefinition in this registry.
|
Module |
AbstractModulesRegistryImpl.add(ModuleDefinition info,
boolean resolve) |
Module |
AbstractModulesRegistryImpl.getProvidingModule(java.lang.String providerClassName) |
protected Module |
AbstractModulesRegistryImpl.loadFromRepository(java.lang.String name,
java.lang.String version) |
Module |
AbstractModulesRegistryImpl.makeModuleFor(java.lang.String packageName)
Find and return a loaded Module that has the package name in its list
of exported interfaces.
|
Module |
AbstractModulesRegistryImpl.makeModuleFor(java.lang.String name,
java.lang.String version)
Returns the
Module instance giving a name and version
constraints. |
Module |
AbstractModulesRegistryImpl.makeModuleFor(java.lang.String name,
java.lang.String version,
boolean resolve) |
protected abstract Module |
AbstractModulesRegistryImpl.newModule(ModuleDefinition moduleDef)
Factory method for creating new instances of Module.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Module> |
AbstractModulesRegistryImpl.getModules()
Returns the list of shared Modules registered in this instance.
|
java.util.Collection<Module> |
AbstractModulesRegistryImpl.getModules(java.lang.String moduleName) |
java.lang.Iterable<Module> |
AbstractModulesRegistryImpl.getModulesProvider(java.lang.Class serviceClass)
Returns a collection of Module containing at least one implementation
of the passed service interface class.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractModulesRegistryImpl.add(Module newModule)
Add a new module to this registry.
|
void |
AbstractModulesRegistryImpl.changed(Module service)
Modules can notify their registry that they have changed (classes,
resources,etc...).
|
protected abstract java.util.List<ActiveDescriptor> |
AbstractModulesRegistryImpl.parseInhabitants(Module module,
java.lang.String name,
ServiceLocator serviceLocator,
java.util.List<PopulatorPostProcessor> postProcessors) |
void |
AbstractModulesRegistryImpl.remove(Module module)
Removes a module from the registry.
|
Modifier and Type | Class and Description |
---|---|
class |
ModuleImpl
A module represents a set of resources accessible to third party modules.
|
Modifier and Type | Method and Description |
---|---|
Module |
ModuleImpl.addImport(ModuleDependency dependency)
Create and add a new module to this module's list of
imports.
|
Module |
ModulesRegistryImpl.find(java.lang.Class clazz) |
protected Module |
ModulesRegistryImpl.newModule(ModuleDefinition moduleDef) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Module> |
ModuleImpl.getImports()
Returns the list of imported modules
|
Modifier and Type | Method and Description |
---|---|
void |
ModuleImpl.addImport(Module module) |
protected java.util.List<ActiveDescriptor> |
ModulesRegistryImpl.parseInhabitants(Module module,
java.lang.String name,
ServiceLocator serviceLocator,
java.util.List<PopulatorPostProcessor> postProcessors) |
private static boolean |
Utils.traverseAndFind(Module toTraverse,
ModuleImpl toFind,
java.util.Vector<Module> traversed) |
Modifier and Type | Method and Description |
---|---|
private static boolean |
Utils.traverseAndFind(Module toTraverse,
ModuleImpl toFind,
java.util.Vector<Module> traversed) |
Modifier and Type | Class and Description |
---|---|
class |
ProxyModule
Creates a Module implementation based on a single class loader
|
Modifier and Type | Field and Description |
---|---|
(package private) Module[] |
SingleModulesRegistry.proxyMod |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<Module> |
ClassPathBasedModulesRegistry.modules |
Modifier and Type | Method and Description |
---|---|
Module |
ProxyModule.addImport(ModuleDependency dependency) |
Module |
ClassPathBasedModulesRegistry.find(java.lang.Class clazz) |
Module |
SingleModulesRegistry.find(java.lang.Class clazz) |
Module |
ClassPathBasedModulesRegistry.makeModuleFor(java.lang.String name,
java.lang.String version,
boolean resolve) |
Module |
SingleModulesRegistry.makeModuleFor(java.lang.String name,
java.lang.String version,
boolean resolve) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Module> |
ProxyModule.getImports() |
java.util.Collection<Module> |
ClassPathBasedModulesRegistry.getModules() |
java.util.Collection<Module> |
SingleModulesRegistry.getModules() |
java.util.Collection<Module> |
ClassPathBasedModulesRegistry.getModules(java.lang.String moduleName) |
java.util.Collection<Module> |
SingleModulesRegistry.getModules(java.lang.String moduleName) |
Modifier and Type | Method and Description |
---|---|
void |
ProxyModule.addImport(Module module) |
protected java.util.List<ActiveDescriptor> |
ClassPathBasedModulesRegistry.parseInhabitants(Module module,
java.lang.String name,
ServiceLocator serviceLocator,
java.util.List<PopulatorPostProcessor> postProcessors) |
protected java.util.List<ActiveDescriptor> |
SingleModulesRegistry.parseInhabitants(Module module,
java.lang.String name,
ServiceLocator serviceLocator,
java.util.List<PopulatorPostProcessor> postProcessors) |