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 the ModuleBuilder.
Author:
James R. Perkins
  • Method Details

    • 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
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(ModuleDependency o)
      Specified by:
      compareTo in interface Comparable<ModuleDependency>