public abstract class ModuleSpec
extends java.lang.Object
Module
specification which is used by a ModuleLoader
to define new modules.Modifier and Type | Class and Description |
---|---|
static interface |
ModuleSpec.AliasBuilder
A builder for new alias module specifications.
|
static interface |
ModuleSpec.Builder
A builder for new concrete module specifications.
|
Modifier and Type | Field and Description |
---|---|
private ModuleIdentifier |
moduleIdentifier |
Constructor and Description |
---|
ModuleSpec(ModuleIdentifier moduleIdentifier) |
Modifier and Type | Method and Description |
---|---|
static ModuleSpec.Builder |
build(ModuleIdentifier moduleIdentifier)
Get a builder for a new module specification.
|
static ModuleSpec.AliasBuilder |
buildAlias(ModuleIdentifier moduleIdentifier,
ModuleIdentifier aliasTarget)
Get a builder for a new module alias specification.
|
ModuleIdentifier |
getModuleIdentifier()
Get the module identifier for the module which is specified by this object.
|
private final ModuleIdentifier moduleIdentifier
ModuleSpec(ModuleIdentifier moduleIdentifier)
public static ModuleSpec.Builder build(ModuleIdentifier moduleIdentifier)
moduleIdentifier
- the module identifierpublic static ModuleSpec.AliasBuilder buildAlias(ModuleIdentifier moduleIdentifier, ModuleIdentifier aliasTarget)
moduleIdentifier
- the module identifieraliasTarget
- the alias target identifierpublic ModuleIdentifier getModuleIdentifier()