com.sun.enterprise.module
Class ModuleMetadata

java.lang.Object
  extended by 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 a 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.

Author:
Kohsuke Kawaguchi
See Also:
Serialized Form

Nested Class Summary
static class ModuleMetadata.Entry
           
 
Constructor Summary
ModuleMetadata()
           
 
Method Summary
 void addHabitat(String name, InhabitantsDescriptor descriptor)
           
 List<URL> getDescriptors(String serviceName)
           
 Iterable<ModuleMetadata.Entry> getEntries()
           
 ModuleMetadata.Entry getEntry(String serviceName)
           
 List<InhabitantsDescriptor> getHabitats(String name)
           
 void load(URL source, String serviceName)
           
 void load(URL source, String serviceName, InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleMetadata

public ModuleMetadata()
Method Detail

getEntry

public ModuleMetadata.Entry getEntry(String serviceName)

getEntries

public Iterable<ModuleMetadata.Entry> getEntries()

getDescriptors

public List<URL> getDescriptors(String serviceName)

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

addHabitat

public void addHabitat(String name,
                       InhabitantsDescriptor descriptor)

getHabitats

public List<InhabitantsDescriptor> getHabitats(String name)


Copyright © 2013 Oracle Corporation. All Rights Reserved.