Class ModuleDependency
- java.lang.Object
-
- org.wildfly.testing.tools.modules.ModuleDependency
-
- All Implemented Interfaces:
Comparable<ModuleDependency>
public class ModuleDependency extends Object implements Comparable<ModuleDependency>
A module dependency used for theModuleBuilder.- Author:
- James R. Perkins
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModuleDependency.BuilderBuilds a module dependency.static interfaceModuleDependency.FilterA simple filter of the dependency to filter paths.static classModuleDependency.Services
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModuleDependency.Builderbuilder(String name)Creates a new dependency builder.intcompareTo(ModuleDependency o)booleanequals(Object obj)Set<ModuleDependency.Filter>exports()The export filters for the dependency.inthashCode()Set<ModuleDependency.Filter>imports()The import filters for the dependency.booleanisExport()Indicates if the dependency should be exported.booleanisOptional()Indicates if the dependency is optional.Stringname()Returns the module dependency name.Optional<ModuleDependency.Services>services()Returns the services value, if defined.StringtoString()
-
-
-
Method Detail
-
builder
public static ModuleDependency.Builder builder(String name)
Creates a new dependency builder.- Parameters:
name- the name of the dependency- Returns:
- the new dependency builder
-
name
public String name()
Returns the module dependency name.- Returns:
- the dependency name
-
isExport
public boolean isExport()
Indicates if the dependency should be exported.- Returns:
- whether the dependency should be exported
-
isOptional
public boolean isOptional()
Indicates if the dependency is optional.- Returns:
- whether the dependency is optional
-
imports
public Set<ModuleDependency.Filter> imports()
The import filters for the dependency.- Returns:
- the import filters or an empty set
-
exports
public Set<ModuleDependency.Filter> exports()
The export filters for the dependency.- Returns:
- the export filters or an empty set
-
services
public Optional<ModuleDependency.Services> services()
Returns the services value, if defined.- Returns:
- the services value
-
compareTo
public int compareTo(ModuleDependency o)
- Specified by:
compareToin interfaceComparable<ModuleDependency>
-
-