Package com.sun.enterprise.module
Class ModuleMetadata
java.lang.Object
com.sun.enterprise.module.ModuleMetadata
- All Implemented Interfaces:
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 Module
s, this class may not reference anything Module
specific.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map
<String, List<Descriptor>> META-INF/hk2-locator/* cacheprivate final Map
<String, ModuleMetadata.Entry> ModuleMetadata.Entry
s keyed by the service name.private static final ModuleMetadata.Entry
Empty Entry used to indicate that there's no service. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDescriptors
(String serviceLocatorName, Collection<Descriptor> descriptorsToAdd) getDescriptors
(String serviceName) void
void
load
(URL source, String serviceName, InputStream is)
-
Field Details
-
descriptors
META-INF/hk2-locator/* cache -
entries
ModuleMetadata.Entry
s keyed by the service name. -
NULL_ENTRY
Empty Entry used to indicate that there's no service. This is mutable, so its working correctly depends on the good will of the callers.
-
-
Constructor Details
-
ModuleMetadata
public ModuleMetadata()
-
-
Method Details
-
getDescriptors
-
addDescriptors
-
getEntry
-
getEntries
-
getDescriptors
-
load
- Throws:
IOException
-
load
- Throws:
IOException
-