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 |
addHabitat(java.lang.String name,
InhabitantsDescriptor descriptor) |
java.util.List<java.net.URL> |
getDescriptors(java.lang.String serviceName) |
java.lang.Iterable<ModuleMetadata.Entry> |
getEntries() |
ModuleMetadata.Entry |
getEntry(java.lang.String serviceName) |
java.util.List<InhabitantsDescriptor> |
getHabitats(java.lang.String name) |
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 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.IOExceptionpublic void addHabitat(java.lang.String name,
InhabitantsDescriptor descriptor)
public java.util.List<InhabitantsDescriptor> getHabitats(java.lang.String name)
Copyright © 2013 Oracle Corporation. All Rights Reserved.