| 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 |
|---|---|
HK2Module |
ModulesRegistry.add(ModuleDefinition info)
Registers a new DefaultModuleDefinition in this registry.
|
HK2Module |
ModulesRegistry.add(ModuleDefinition info,
boolean resolve)
Registers a new DefaultModuleDefinition in this registry.
|
HK2Module |
HK2Module.addImport(ModuleDependency dependency)
Create and add a new module to this module's list of
imports.
|
HK2Module |
ModulesRegistry.find(Class clazz)
Finds the
HK2Module that owns the given class. |
HK2Module |
ModulesRegistry.getProvidingModule(String providerClassName)
Gets the
HK2Module that provides the provider of the given name. |
HK2Module |
ModulesRegistry.makeModuleFor(String packageName)
Find and return a loaded HK2Module that has the package name in its list
of exported interfaces.
|
HK2Module |
ModulesRegistry.makeModuleFor(String name,
String version)
Returns the
HK2Module instance giving a name and version
constraints. |
HK2Module |
ModulesRegistry.makeModuleFor(String name,
String version,
boolean resolve)
Returns the
HK2Module instance giving a name and version
constraints. |
| Modifier and Type | Method and Description |
|---|---|
List<HK2Module> |
HK2Module.getImports()
Returns the list of imported modules.
|
Collection<HK2Module> |
ModulesRegistry.getModules()
Returns the list of shared Modules registered in this instance.
|
Collection<HK2Module> |
ModulesRegistry.getModules(String moduleName)
Returns the list of shared Modules registered in this instance whose name
matches the given name
|
Iterable<HK2Module> |
ModulesRegistry.getModulesProvider(Class serviceClass)
Returns a collection of HK2Module containing at least one implementation
of the passed service interface class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
HK2Module.addImport(HK2Module module) |
void |
ModuleChangeListener.changed(HK2Module sender)
a module has detected that one or more of its resources (classes, jar...)
has changed and should be reloaded.
|
void |
ModuleLifecycleListener.moduleInstalled(HK2Module module)
Callback after a module is installed
|
void |
ModuleLifecycleListener.moduleResolved(HK2Module module)
Callback after a module is resolved
|
void |
ModuleLifecycleListener.moduleStarted(HK2Module module)
Callback after a module is started.
|
void |
ModuleLifecycleListener.moduleStopped(HK2Module module)
Callback after a module is stopped
|
void |
ModuleLifecycleListener.moduleUpdated(HK2Module module)
Callback after a module is updated.
|
void |
ImportPolicy.prepare(HK2Module module)
callback from the module loading system when the module enters the
PREPARING phase. |
void |
LifecyclePolicy.start(HK2Module module)
Callback when the module enters the
READY state. |
void |
LifecyclePolicy.stop(HK2Module module)
Callback before the module starts being unloaded.
|
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentMap<ModuleId,HK2Module> |
AbstractModulesRegistryImpl.modules |
protected Map<String,HK2Module> |
AbstractModulesRegistryImpl.providers
Service provider class names and which modules they are in.
|
| Modifier and Type | Method and Description |
|---|---|
HK2Module |
AbstractModulesRegistryImpl.add(ModuleDefinition info)
Registers a new DefaultModuleDefinition in this registry.
|
HK2Module |
AbstractModulesRegistryImpl.add(ModuleDefinition info,
boolean resolve) |
HK2Module |
AbstractModulesRegistryImpl.getProvidingModule(String providerClassName) |
protected HK2Module |
AbstractModulesRegistryImpl.loadFromRepository(String name,
String version) |
HK2Module |
AbstractModulesRegistryImpl.makeModuleFor(String packageName)
Find and return a loaded HK2Module that has the package name in its list
of exported interfaces.
|
HK2Module |
AbstractModulesRegistryImpl.makeModuleFor(String name,
String version)
Returns the
HK2Module instance giving a name and version
constraints. |
HK2Module |
AbstractModulesRegistryImpl.makeModuleFor(String name,
String version,
boolean resolve) |
protected abstract HK2Module |
AbstractModulesRegistryImpl.newModule(ModuleDefinition moduleDef)
Factory method for creating new instances of HK2Module.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<HK2Module> |
AbstractModulesRegistryImpl.getModules()
Returns the list of shared Modules registered in this instance.
|
Collection<HK2Module> |
AbstractModulesRegistryImpl.getModules(String moduleName) |
Iterable<HK2Module> |
AbstractModulesRegistryImpl.getModulesProvider(Class serviceClass)
Returns a collection of HK2Module containing at least one implementation
of the passed service interface class.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractModulesRegistryImpl.add(HK2Module newModule)
Add a new module to this registry.
|
void |
AbstractModulesRegistryImpl.changed(HK2Module service)
Modules can notify their registry that they have changed (classes,
resources,etc...).
|
protected abstract List<org.glassfish.hk2.api.ActiveDescriptor> |
AbstractModulesRegistryImpl.parseInhabitants(HK2Module module,
String name,
org.glassfish.hk2.api.ServiceLocator serviceLocator,
List<org.glassfish.hk2.api.PopulatorPostProcessor> postProcessors) |
void |
AbstractModulesRegistryImpl.remove(HK2Module 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 |
|---|---|
HK2Module |
ModuleImpl.addImport(ModuleDependency dependency)
Create and add a new module to this module's list of
imports.
|
HK2Module |
ModulesRegistryImpl.find(Class clazz) |
protected HK2Module |
ModulesRegistryImpl.newModule(ModuleDefinition moduleDef) |
| Modifier and Type | Method and Description |
|---|---|
List<HK2Module> |
ModuleImpl.getImports()
Returns the list of imported modules
|
| Modifier and Type | Method and Description |
|---|---|
void |
ModuleImpl.addImport(HK2Module module) |
protected List<org.glassfish.hk2.api.ActiveDescriptor> |
ModulesRegistryImpl.parseInhabitants(HK2Module module,
String name,
org.glassfish.hk2.api.ServiceLocator serviceLocator,
List<org.glassfish.hk2.api.PopulatorPostProcessor> postProcessors) |
| Modifier and Type | Class and Description |
|---|---|
class |
ProxyModule
Creates a HK2Module implementation based on a single class loader
|
| Modifier and Type | Method and Description |
|---|---|
HK2Module |
ProxyModule.addImport(ModuleDependency dependency) |
HK2Module |
SingleModulesRegistry.find(Class clazz) |
HK2Module |
ClassPathBasedModulesRegistry.find(Class clazz) |
HK2Module |
SingleModulesRegistry.makeModuleFor(String name,
String version,
boolean resolve) |
HK2Module |
ClassPathBasedModulesRegistry.makeModuleFor(String name,
String version,
boolean resolve) |
| Modifier and Type | Method and Description |
|---|---|
List<HK2Module> |
ProxyModule.getImports() |
Collection<HK2Module> |
SingleModulesRegistry.getModules() |
Collection<HK2Module> |
ClassPathBasedModulesRegistry.getModules() |
Collection<HK2Module> |
SingleModulesRegistry.getModules(String moduleName) |
Collection<HK2Module> |
ClassPathBasedModulesRegistry.getModules(String moduleName) |
| Modifier and Type | Method and Description |
|---|---|
void |
ProxyModule.addImport(HK2Module module) |
protected List<org.glassfish.hk2.api.ActiveDescriptor> |
SingleModulesRegistry.parseInhabitants(HK2Module module,
String name,
org.glassfish.hk2.api.ServiceLocator serviceLocator,
List<org.glassfish.hk2.api.PopulatorPostProcessor> postProcessors) |
protected List<org.glassfish.hk2.api.ActiveDescriptor> |
ClassPathBasedModulesRegistry.parseInhabitants(HK2Module module,
String name,
org.glassfish.hk2.api.ServiceLocator serviceLocator,
List<org.glassfish.hk2.api.PopulatorPostProcessor> postProcessors) |
Copyright © 2009–2021 Oracle Corporation. All rights reserved.