Package org.jboss.modules
Class ModuleSpec
java.lang.Object
org.jboss.modules.ModuleSpec
- Direct Known Subclasses:
AliasModuleSpec,ConcreteModuleSpec
A
Module specification which is used by a ModuleLoader to define new modules.- Author:
- David M. Lloyd
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA builder for new alias module specifications.static interfaceA builder for new concrete module specifications. -
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleSpec.BuilderGet a builder for a new module specification.static ModuleSpec.Builderbuild(ModuleIdentifier moduleIdentifier) Deprecated, for removal: This API element is subject to removal in a future version.static ModuleSpec.AliasBuilderbuildAlias(String name, String aliasName) Get a builder for a new module alias specification.static ModuleSpec.AliasBuilderbuildAlias(ModuleIdentifier moduleIdentifier, ModuleIdentifier aliasTarget) Deprecated, for removal: This API element is subject to removal in a future version.UsebuildAlias(String, String)instead.Deprecated, for removal: This API element is subject to removal in a future version.UsegetName()instead.getName()Get the module name for the module which is specified by this object.
-
Method Details
-
build
@Deprecated(forRemoval=true) public static ModuleSpec.Builder build(ModuleIdentifier moduleIdentifier) Deprecated, for removal: This API element is subject to removal in a future version.Usebuild(String)instead.Get a builder for a new module specification.- Parameters:
moduleIdentifier- the module identifier- Returns:
- the builder
-
build
Get a builder for a new module specification.- Parameters:
name- the module name- Returns:
- the builder
-
buildAlias
@Deprecated(forRemoval=true) public static ModuleSpec.AliasBuilder buildAlias(ModuleIdentifier moduleIdentifier, ModuleIdentifier aliasTarget) Deprecated, for removal: This API element is subject to removal in a future version.UsebuildAlias(String, String)instead.Get a builder for a new module alias specification.- Parameters:
moduleIdentifier- the module identifieraliasTarget- the alias target identifier- Returns:
- the builder
-
buildAlias
Get a builder for a new module alias specification.- Parameters:
name- the module namealiasName- the alias target name- Returns:
- the builder
-
getModuleIdentifier
Deprecated, for removal: This API element is subject to removal in a future version.UsegetName()instead.Get the module identifier for the module which is specified by this object.- Returns:
- the module identifier
-
getName
Get the module name for the module which is specified by this object.- Returns:
- the module name
-
build(String)instead.