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 |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private Map | descriptors
META-INF/hk2-locator/* cache |
| private final Map | |
| private final ReentrantLock | |
| private static final ModuleMetadata. | NULL_ENTRY
Empty Entry used to indicate that there's no service. |
| private static long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Map | |
| public List | |
| public Iterable | |
| public ModuleMetadata. | |
| public void | |
| public void |
| descriptors | back to summary |
|---|---|
| private Map<String, List<Descriptor>> descriptors META-INF/hk2-locator/* cache | |
| entries | back to summary |
|---|---|
| private final Map<String, ModuleMetadata.
| |
| lock | back to summary |
|---|---|
| private final ReentrantLock lock | |
| NULL_ENTRY | back to summary |
|---|---|
| private static final ModuleMetadata. 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. | |
| serialVersionUID | back to summary |
|---|---|
| private static long serialVersionUID | |
| ModuleMetadata | back to summary |
|---|---|
| public ModuleMetadata() | |
| addDescriptors | back to summary |
|---|---|
| public void addDescriptors(String serviceLocatorName, Collection<Descriptor> descriptorsToAdd) | |
| getDescriptors | back to summary |
|---|---|
| public Map | |
| getDescriptors | back to summary |
|---|---|
| public List | |
| getEntries | back to summary |
|---|---|
| public Iterable | |
| getEntry | back to summary |
|---|---|
| public ModuleMetadata. | |
| load | back to summary |
|---|---|
| public void load(URL source, String serviceName) throws IOException | |
| load | back to summary |
|---|---|
| public void load(URL source, String serviceName, InputStream is) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| public final List | |
| public final List | |
| private static long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| private void |
| providerNames | back to summary |
|---|---|
| public final List<String> providerNames | |
| resources | back to summary |
|---|---|
| public final List<URL> resources | |
| serialVersionUID | back to summary |
|---|---|
| private static long serialVersionUID | |
| Entry | back to summary |
|---|---|
| public Entry() | |
| hasProvider | back to summary |
|---|---|
| public boolean hasProvider() | |
| load | back to summary |
|---|---|
| private void load(URL source, InputStream is) throws IOException Loads a single service file. | |