public final class ModuleMetadata extends Object implements Serializable
Module.
A Service implementation is identified by the service interface it implements, the implementation class of that service interface and the module in which that implementation resides.
Note that since a single ModuleDefinition is allowed to be used
in multiple Modules, this class may not reference anything Module
specific.
| Modifier and Type | Class and Description |
|---|---|
static class |
ModuleMetadata.Entry |
| Constructor and Description |
|---|
ModuleMetadata() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDescriptors(String serviceLocatorName,
Collection<org.glassfish.hk2.api.Descriptor> descriptorsToAdd) |
Map<String,List<org.glassfish.hk2.api.Descriptor>> |
getDescriptors() |
List<URL> |
getDescriptors(String serviceName) |
Iterable<ModuleMetadata.Entry> |
getEntries() |
ModuleMetadata.Entry |
getEntry(String serviceName) |
void |
load(URL source,
String serviceName) |
void |
load(URL source,
String serviceName,
InputStream is) |
public void addDescriptors(String serviceLocatorName, Collection<org.glassfish.hk2.api.Descriptor> descriptorsToAdd)
public ModuleMetadata.Entry getEntry(String serviceName)
public Iterable<ModuleMetadata.Entry> getEntries()
public void load(URL source, String serviceName) throws IOException
IOExceptionpublic void load(URL source, String serviceName, InputStream is) throws IOException
IOExceptionCopyright © 2009-2013 Oracle Corporation. All Rights Reserved.