Class ModuleDependency
java.lang.Object
org.wildfly.testing.tools.modules.ModuleDependency
- All Implemented Interfaces:
Comparable<ModuleDependency>
A module dependency used for the
ModuleBuilder.- Author:
- James R. Perkins
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilds a module dependency.static interfaceA simple filter of the dependency to filter paths.static enum -
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleDependency.BuilderCreates a new dependency builder.intbooleanexports()The export filters for the dependency.inthashCode()imports()The import filters for the dependency.booleanisExport()Indicates if the dependency should be exported.booleanIndicates if the dependency is optional.name()Returns the module dependency name.services()Returns the services value, if defined.toString()
-
Method Details
-
builder
Creates a new dependency builder.- Parameters:
name- the name of the dependency- Returns:
- the new dependency builder
-
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
The import filters for the dependency.- Returns:
- the import filters or an empty set
-
exports
The export filters for the dependency.- Returns:
- the export filters or an empty set
-
services
Returns the services value, if defined.- Returns:
- the services value
-
equals
-
toString
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<ModuleDependency>
-