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 |
---|---|
ModuleDefinition |
Repository.find(String name,
String version)
Finds and returns a
DefaultModuleDefinition instance
for a module given the name and version constraints. |
ModuleDefinition |
Module.getModuleDefinition()
Returns the module definition for this module instance
|
Modifier and Type | Method and Description |
---|---|
List<ModuleDefinition> |
Repository.findAll()
Returns a list of all modules available in this repository
|
List<ModuleDefinition> |
Repository.findAll(String name)
Finds and returns a list of all the available versions of a
module given its name.
|
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.
|
void |
RepositoryChangeListener.moduleAdded(ModuleDefinition definition)
A new module jar file was added to the repository.
|
void |
RepositoryChangeListener.moduleRemoved(ModuleDefinition definition)
A module file was removed from the repository
|
Modifier and Type | Method and Description |
---|---|
ClassLoader |
ModulesRegistry.getModulesClassLoader(ClassLoader parent,
Collection<ModuleDefinition> defs)
Returns a ClassLoader capable of loading classes from a set of modules identified
by their module definition
|
ClassLoader |
ModulesRegistry.getModulesClassLoader(ClassLoader parent,
Collection<ModuleDefinition> defs,
URL[] urls)
Returns a ClassLoader capable of loading classes from a set of modules identified
by their module definition and also load new urls.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultModuleDefinition
ModuleDefinition implementation that picks up most of the module
properties from the manifest file of the jar, as baked in by
the hk2-maven-plugin. |
Modifier and Type | Method and Description |
---|---|
ModuleDefinition |
AbstractRepositoryImpl.find(String name,
String version) |
protected ModuleDefinition |
AbstractRepositoryImpl.loadJar(File jar)
Loads a jar file and builds a
ModuleDefinition . |
protected ModuleDefinition |
AbstractRepositoryImpl.newModuleDefinition(File jar,
Attributes attr)
Extensibility point for subclasses to create a different instance
of
ModuleDefinition . |
Modifier and Type | Method and Description |
---|---|
List<ModuleDefinition> |
AbstractRepositoryImpl.findAll() |
List<ModuleDefinition> |
AbstractRepositoryImpl.findAll(String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractRepositoryImpl.add(ModuleDefinition def) |
Module |
AbstractModulesRegistryImpl.add(ModuleDefinition info)
Registers a new DefaultModuleDefinition in this registry.
|
Module |
AbstractModulesRegistryImpl.add(ModuleDefinition info,
boolean resolve) |
abstract ModuleId |
AbstractFactory.createModuleId(ModuleDefinition md) |
protected abstract Module |
AbstractModulesRegistryImpl.newModule(ModuleDefinition moduleDef)
Factory method for creating new instances of Module.
|
protected void |
AbstractRepositoryImpl.remove(ModuleDefinition def) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractRepositoryImpl.loadModuleDefs(Map<ModuleId,ModuleDefinition> moduleDefs,
List<URI> libraries)
Called from
AbstractRepositoryImpl.initialize() to load all ModuleDefinition s and libraries defintions |
protected void |
DirectoryBasedRepository.loadModuleDefs(Map<ModuleId,ModuleDefinition> moduleDefs,
List<URI> libraries) |
Constructor and Description |
---|
ModuleId(ModuleDefinition md) |
Modifier and Type | Class and Description |
---|---|
class |
CookedModuleDefinition |
Modifier and Type | Method and Description |
---|---|
ModuleDefinition |
CookedLibRepository.find(String name,
String version)
Finds and returns a
DefaultModuleDefinition instance
for a module given the name and version constraints. |
ModuleDefinition |
ModuleImpl.getModuleDefinition()
Returns the module definition for this module instance
|
Modifier and Type | Method and Description |
---|---|
abstract List<ModuleDefinition> |
CookedLibRepository.findAll()
Returns a list of all modules available in this repository
|
List<ModuleDefinition> |
CookedLibRepository.findAll(String name)
Finds and returns a list of all the available versions of a
module given its name.
|
Modifier and Type | Method and Description |
---|---|
void |
CookedLibRepository.add(ModuleDefinition definition)
Adds a new module
|
ModuleId |
HK2Factory.createModuleId(ModuleDefinition md) |
protected Module |
ModulesRegistryImpl.newModule(ModuleDefinition moduleDef) |
Modifier and Type | Method and Description |
---|---|
ClassLoader |
ModulesRegistryImpl.getModulesClassLoader(ClassLoader parent,
Collection<ModuleDefinition> defs)
Returns a ClassLoader capable of loading classes from a set of modules identified
by their module definition
|
ClassLoader |
ModulesRegistryImpl.getModulesClassLoader(ClassLoader parent,
Collection<ModuleDefinition> defs,
URL[] urls)
Returns a ClassLoader capable of loading classes from a set of modules identified
by their module definition and also load new urls.
|
Modifier and Type | Class and Description |
---|---|
class |
ProxyModuleDefinition
Creates a ModuleDefinition backed up by a a single classloader.
|
Modifier and Type | Method and Description |
---|---|
ModuleDefinition |
ProxyModule.getModuleDefinition() |
Constructor and Description |
---|
ProxyModule(ModulesRegistry registry,
ModuleDefinition moduleDef,
ClassLoader cl) |
Copyright © 2009–2019 Oracle Corporation. All rights reserved.