Interface DependencyMetadata<SELF extends DependencyMetadata>

Type Parameters:
SELF - type extending this interface
All Known Subinterfaces:
DependencyConstraintMetadata, DirectDependencyMetadata

public interface DependencyMetadata<SELF extends DependencyMetadata>
Describes a metadata about a dependency - direct dependency or dependency constraint - declared in a resolved component's metadata.
Since:
4.4
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the group of the module that is targeted by this dependency or dependency constraint.
    Returns the name of the module that is targeted by this dependency or dependency constraint.
    Returns the version of the module that is targeted by this dependency or dependency constraint.
    version(Action<? super MutableVersionConstraint> configureAction)
    Adjust the version constraints of the dependency or dependency constraint.
  • Method Details

    • getGroup

      String getGroup()
      Returns the group of the module that is targeted by this dependency or dependency constraint. The group allows the definition of modules of the same name in different organizations or contexts.
    • getName

      String getName()
      Returns the name of the module that is targeted by this dependency or dependency constraint.
    • getVersionConstraint

      VersionConstraint getVersionConstraint()
      Returns the version of the module that is targeted by this dependency or dependency constraint. which usually expresses what API level of the module you are compatible with.
      Since:
      4.5
    • version

      SELF version(Action<? super MutableVersionConstraint> configureAction)
      Adjust the version constraints of the dependency or dependency constraint.
      Parameters:
      configureAction - modify version details
      Since:
      4.5