Package org.jboss.modules
Class ModuleDependencySpec
- java.lang.Object
-
- org.jboss.modules.DependencySpec
-
- org.jboss.modules.ModuleDependencySpec
-
public final class ModuleDependencySpec extends DependencySpec
A dependency specification on a module.
-
-
Field Summary
Fields Modifier and Type Field Description static ModuleDependencySpec
JAVA_BASE
A simple dependency on thejava.base
module.static ModuleDependencySpec
JAVA_SE
A simple dependency on thejava.se
module.-
Fields inherited from class org.jboss.modules.DependencySpec
OWN_DEPENDENCY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ModuleIdentifier
getIdentifier()
Deprecated.Use#getName()
instead.ModuleLoader
getModuleLoader()
Get the module loader of this dependency, ornull
if the defined module's loader is to be used.java.lang.String
getName()
Get the module name of the dependency.boolean
isOptional()
Determine whether this dependency is optional.java.lang.String
toString()
-
Methods inherited from class org.jboss.modules.DependencySpec
createClassLoaderDependencySpec, createClassLoaderDependencySpec, createClassLoaderDependencySpec, createLocalDependencySpec, createLocalDependencySpec, createLocalDependencySpec, createLocalDependencySpec, createLocalDependencySpec, createLocalDependencySpec, createLocalDependencySpec, createModuleDependencySpec, createModuleDependencySpec, createModuleDependencySpec, createModuleDependencySpec, createModuleDependencySpec, createModuleDependencySpec, createModuleDependencySpec, createModuleDependencySpec, createModuleDependencySpec, createModuleDependencySpec, createModuleDependencySpec, createModuleDependencySpec, createModuleDependencySpec, createModuleDependencySpec, createModuleDependencySpec, createModuleDependencySpec, createModuleDependencySpec, createModuleDependencySpec, createSystemDependencySpec, createSystemDependencySpec, createSystemDependencySpec, getClassExportFilter, getClassImportFilter, getExportFilter, getImportFilter, getResourceExportFilter, getResourceImportFilter
-
-
-
-
Field Detail
-
JAVA_BASE
public static final ModuleDependencySpec JAVA_BASE
A simple dependency on thejava.base
module.
-
JAVA_SE
public static final ModuleDependencySpec JAVA_SE
A simple dependency on thejava.se
module.
-
-
Method Detail
-
getModuleLoader
public ModuleLoader getModuleLoader()
Get the module loader of this dependency, ornull
if the defined module's loader is to be used.- Returns:
- the module loader
-
getIdentifier
@Deprecated public ModuleIdentifier getIdentifier()
Deprecated.Use#getName()
instead.Get the module identifier of the dependency.- Returns:
- the module identifier
-
getName
public java.lang.String getName()
Get the module name of the dependency.- Returns:
- the module name
-
isOptional
public boolean isOptional()
Determine whether this dependency is optional.- Returns:
true
if the dependency is optional,false
if it is required
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-