Package com.sun.enterprise.module
Class ModuleMetadata
- java.lang.Object
-
- com.sun.enterprise.module.ModuleMetadata
-
- All Implemented Interfaces:
Serializable
public final class ModuleMetadata extends Object implements Serializable
Holds information about /META-INF/services and /META-INF/inhabitants for aModule
.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 multipleModule
s, this class may not reference anythingModule
specific.- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModuleMetadata.Entry
-
Constructor Summary
Constructors Constructor Description ModuleMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getDescriptors
public Map<String,List<Descriptor>> getDescriptors()
-
addDescriptors
public void addDescriptors(String serviceLocatorName, Collection<Descriptor> descriptorsToAdd)
-
getEntry
public ModuleMetadata.Entry getEntry(String serviceName)
-
getEntries
public Iterable<ModuleMetadata.Entry> getEntries()
-
load
public void load(URL source, String serviceName) throws IOException
- Throws:
IOException
-
load
public void load(URL source, String serviceName, InputStream is) throws IOException
- Throws:
IOException
-
-