| 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(java.lang.String name,
java.lang.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 |
|---|---|
java.util.List<ModuleDefinition> |
Repository.findAll()
Returns a list of all modules available in this repository
|
java.util.List<ModuleDefinition> |
Repository.findAll(java.lang.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 |
|---|---|
java.lang.ClassLoader |
ModulesRegistry.getModulesClassLoader(java.lang.ClassLoader parent,
java.util.Collection<ModuleDefinition> defs)
Returns a ClassLoader capable of loading classes from a set of modules identified
by their module definition
|
java.lang.ClassLoader |
ModulesRegistry.getModulesClassLoader(java.lang.ClassLoader parent,
java.util.Collection<ModuleDefinition> defs,
java.net.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(java.lang.String name,
java.lang.String version) |
protected ModuleDefinition |
AbstractRepositoryImpl.loadJar(java.io.File jar)
Loads a jar file and builds a
ModuleDefinition. |
protected ModuleDefinition |
AbstractRepositoryImpl.newModuleDefinition(java.io.File jar,
java.util.jar.Attributes attr)
Extensibility point for subclasses to create a different instance
of
ModuleDefinition. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ModuleDefinition> |
AbstractRepositoryImpl.findAll() |
java.util.List<ModuleDefinition> |
AbstractRepositoryImpl.findAll(java.lang.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 void |
DirectoryBasedRepository.loadModuleDefs(java.util.Map<ModuleId,ModuleDefinition> moduleDefs,
java.util.List<java.net.URI> libraries) |
protected abstract void |
AbstractRepositoryImpl.loadModuleDefs(java.util.Map<ModuleId,ModuleDefinition> moduleDefs,
java.util.List<java.net.URI> libraries)
Called from
AbstractRepositoryImpl.initialize() to load all ModuleDefinitions and libraries defintions |
| Constructor and Description |
|---|
ModuleId(ModuleDefinition md) |
| Modifier and Type | Class and Description |
|---|---|
class |
CookedModuleDefinition |
| Modifier and Type | Method and Description |
|---|---|
ModuleDefinition |
CookedLibRepository.find(java.lang.String name,
java.lang.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 java.util.List<ModuleDefinition> |
CookedLibRepository.findAll()
Returns a list of all modules available in this repository
|
java.util.List<ModuleDefinition> |
CookedLibRepository.findAll(java.lang.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 |
|---|---|
java.lang.ClassLoader |
ModulesRegistryImpl.getModulesClassLoader(java.lang.ClassLoader parent,
java.util.Collection<ModuleDefinition> defs)
Returns a ClassLoader capable of loading classes from a set of modules identified
by their module definition
|
java.lang.ClassLoader |
ModulesRegistryImpl.getModulesClassLoader(java.lang.ClassLoader parent,
java.util.Collection<ModuleDefinition> defs,
java.net.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,
java.lang.ClassLoader cl) |
Copyright © 2013 Oracle Corporation. All Rights Reserved.