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 Module
s, 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<Descriptor> descriptorsToAdd) |
Map<String,List<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 Map<String,List<Descriptor>> getDescriptors()
public void addDescriptors(String serviceLocatorName, Collection<Descriptor> descriptorsToAdd)
public ModuleMetadata.Entry getEntry(String serviceName)
public Iterable<ModuleMetadata.Entry> getEntries()
public void load(URL source, String serviceName) throws IOException
IOException
public void load(URL source, String serviceName, InputStream is) throws IOException
IOException
Copyright © 2009–2023 Oracle Corporation. All rights reserved.