AliasModuleSpec
, ConcreteModuleSpec
public abstract class ModuleSpec extends Object
Module
specification which is used by a ModuleLoader
to define new modules.Modifier and Type | Class | 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 | Method | Description |
---|---|---|
static ModuleSpec.Builder |
build(String name) |
Get a builder for a new module specification.
|
static ModuleSpec.Builder |
build(ModuleIdentifier moduleIdentifier) |
Deprecated.
Use
build(String) instead. |
static ModuleSpec.AliasBuilder |
buildAlias(String name,
String aliasName) |
Get a builder for a new module alias specification.
|
static ModuleSpec.AliasBuilder |
buildAlias(ModuleIdentifier moduleIdentifier,
ModuleIdentifier aliasTarget) |
Deprecated.
Use
buildAlias(String, String) instead. |
ModuleIdentifier |
getModuleIdentifier() |
Deprecated.
Use
getName() instead. |
String |
getName() |
Get the module name for the module which is specified by this object.
|
@Deprecated public static ModuleSpec.Builder build(ModuleIdentifier moduleIdentifier)
build(String)
instead.moduleIdentifier
- the module identifierpublic static ModuleSpec.Builder build(String name)
name
- the module name@Deprecated public static ModuleSpec.AliasBuilder buildAlias(ModuleIdentifier moduleIdentifier, ModuleIdentifier aliasTarget)
buildAlias(String, String)
instead.moduleIdentifier
- the module identifieraliasTarget
- the alias target identifierpublic static ModuleSpec.AliasBuilder buildAlias(String name, String aliasName)
name
- the module namealiasName
- the alias target namepublic ModuleIdentifier getModuleIdentifier()
getName()
instead.public String getName()
Copyright © 2022 JBoss by Red Hat. All rights reserved.