public final class ModuleMetadata
extends java.lang.Object
implements java.io.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(java.lang.String serviceLocatorName,
java.util.Collection<Descriptor> descriptorsToAdd) |
java.util.Map<java.lang.String,java.util.List<Descriptor>> |
getDescriptors() |
java.util.List<java.net.URL> |
getDescriptors(java.lang.String serviceName) |
java.lang.Iterable<ModuleMetadata.Entry> |
getEntries() |
ModuleMetadata.Entry |
getEntry(java.lang.String serviceName) |
void |
load(java.net.URL source,
java.lang.String serviceName) |
void |
load(java.net.URL source,
java.lang.String serviceName,
java.io.InputStream is) |
public java.util.Map<java.lang.String,java.util.List<Descriptor>> getDescriptors()
public void addDescriptors(java.lang.String serviceLocatorName,
java.util.Collection<Descriptor> descriptorsToAdd)
public ModuleMetadata.Entry getEntry(java.lang.String serviceName)
public java.lang.Iterable<ModuleMetadata.Entry> getEntries()
public java.util.List<java.net.URL> getDescriptors(java.lang.String serviceName)
public void load(java.net.URL source,
java.lang.String serviceName)
throws java.io.IOException
java.io.IOExceptionpublic void load(java.net.URL source,
java.lang.String serviceName,
java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionCopyright © 2013 Oracle Corporation. All Rights Reserved.