Package | Description |
---|---|
com.sun.enterprise.module | |
com.sun.enterprise.module.common_impl | |
com.sun.enterprise.module.impl | |
com.sun.enterprise.module.single | |
org.jvnet.hk2.osgiadapter |
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(Class clazz)
Finds the
Module that owns the given class. |
Module |
ModulesRegistry.getProvidingModule(String providerClassName)
Gets the
Module that provides the provider of the given name. |
Module |
ModulesRegistry.makeModuleFor(String packageName)
Find and return a loaded Module that has the package name in its list
of exported interfaces.
|
Module |
ModulesRegistry.makeModuleFor(String name,
String version)
Returns the
Module instance giving a name and version
constraints. |
Module |
ModulesRegistry.makeModuleFor(String name,
String version,
boolean resolve)
Returns the
Module instance giving a name and version
constraints. |
Modifier and Type | Method and Description |
---|---|
List<Module> |
Module.getImports()
Returns the list of imported modules.
|
Collection<Module> |
ModulesRegistry.getModules()
Returns the list of shared Modules registered in this instance.
|
Collection<Module> |
ModulesRegistry.getModules(String moduleName)
Returns the list of shared Modules registered in this instance whose name
matches the given name
|
Iterable<Module> |
ModulesRegistry.getModulesProvider(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 |
---|---|
protected ConcurrentMap<ModuleId,Module> |
AbstractModulesRegistryImpl.modules |
protected Map<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(String providerClassName) |
protected Module |
AbstractModulesRegistryImpl.loadFromRepository(String name,
String version) |
Module |
AbstractModulesRegistryImpl.makeModuleFor(String packageName)
Find and return a loaded Module that has the package name in its list
of exported interfaces.
|
Module |
AbstractModulesRegistryImpl.makeModuleFor(String name,
String version)
Returns the
Module instance giving a name and version
constraints. |
Module |
AbstractModulesRegistryImpl.makeModuleFor(String name,
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 |
---|---|
Collection<Module> |
AbstractModulesRegistryImpl.getModules()
Returns the list of shared Modules registered in this instance.
|
Collection<Module> |
AbstractModulesRegistryImpl.getModules(String moduleName) |
Iterable<Module> |
AbstractModulesRegistryImpl.getModulesProvider(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 List<ActiveDescriptor> |
AbstractModulesRegistryImpl.parseInhabitants(Module module,
String name,
ServiceLocator serviceLocator,
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(Class clazz) |
protected Module |
ModulesRegistryImpl.newModule(ModuleDefinition moduleDef) |
Modifier and Type | Method and Description |
---|---|
List<Module> |
ModuleImpl.getImports()
Returns the list of imported modules
|
Modifier and Type | Method and Description |
---|---|
void |
ModuleImpl.addImport(Module module) |
protected List<ActiveDescriptor> |
ModulesRegistryImpl.parseInhabitants(Module module,
String name,
ServiceLocator serviceLocator,
List<PopulatorPostProcessor> postProcessors) |
Modifier and Type | Class and Description |
---|---|
class |
ProxyModule
Creates a Module implementation based on a single class loader
|
Modifier and Type | Method and Description |
---|---|
Module |
ProxyModule.addImport(ModuleDependency dependency) |
Module |
SingleModulesRegistry.find(Class clazz) |
Module |
ClassPathBasedModulesRegistry.find(Class clazz) |
Module |
SingleModulesRegistry.makeModuleFor(String name,
String version,
boolean resolve) |
Module |
ClassPathBasedModulesRegistry.makeModuleFor(String name,
String version,
boolean resolve) |
Modifier and Type | Method and Description |
---|---|
List<Module> |
ProxyModule.getImports() |
Collection<Module> |
SingleModulesRegistry.getModules() |
Collection<Module> |
ClassPathBasedModulesRegistry.getModules() |
Collection<Module> |
SingleModulesRegistry.getModules(String moduleName) |
Collection<Module> |
ClassPathBasedModulesRegistry.getModules(String moduleName) |
Modifier and Type | Method and Description |
---|---|
void |
ProxyModule.addImport(Module module) |
protected List<ActiveDescriptor> |
SingleModulesRegistry.parseInhabitants(Module module,
String name,
ServiceLocator serviceLocator,
List<PopulatorPostProcessor> postProcessors) |
protected List<ActiveDescriptor> |
ClassPathBasedModulesRegistry.parseInhabitants(Module module,
String name,
ServiceLocator serviceLocator,
List<PopulatorPostProcessor> postProcessors) |
Modifier and Type | Class and Description |
---|---|
class |
OSGiModuleImpl |
class |
OSGiObrModuleImpl |
Modifier and Type | Method and Description |
---|---|
Module |
OSGiModuleImpl.addImport(ModuleDependency dependency) |
Module |
AbstractOSGiModulesRegistryImpl.find(Class clazz) |
protected Module |
OSGiObrModulesRegistryImpl.loadFromRepository(String name,
String version) |
protected Module |
OSGiModulesRegistryImpl.newModule(ModuleDefinition moduleDef) |
protected Module |
OSGiObrModulesRegistryImpl.newModule(ModuleDefinition moduleDef) |
Modifier and Type | Method and Description |
---|---|
List<Module> |
OSGiObrModuleImpl.getImports() |
List<Module> |
OSGiModuleImpl.getImports() |
Modifier and Type | Method and Description |
---|---|
protected void |
OSGiModulesRegistryImpl.add(Module newModule) |
void |
OSGiModuleImpl.addImport(Module module) |
List<ActiveDescriptor> |
AbstractOSGiModulesRegistryImpl.parseInhabitants(Module module,
String name,
ServiceLocator serviceLocator,
List<PopulatorPostProcessor> postProcessors) |
void |
OSGiModulesRegistryImpl.remove(Module module) |
void |
AbstractOSGiModulesRegistryImpl.remove(Module module) |
Copyright © 2009–2023 Oracle Corporation. All rights reserved.