Schnittstelle DependencyMetadata<SELF extends DependencyMetadata>

Typparameter:
SELF - type extending this interface
Alle bekannten Unterschnittstellen:
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.
Seit:
4.4
  • Methodendetails

    • 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.
      Seit:
      4.5
    • version

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

      @Nullable String getReason()
      Returns the reason why this dependency should be selected.
      Gibt zurück:
      the reason, or null if no reason is found in metadata.
      Seit:
      4.6
    • because

      SELF because(String reason)
      Adjust the reason why this dependency should be selected.
      Parameter:
      reason - modified reason
      Seit:
      4.6
    • getAttributes

      AttributeContainer getAttributes()
      Returns the attributes of this dependency.
      Gibt zurück:
      the attributes of this dependency
      Seit:
      4.8
    • attributes

      SELF attributes(Action<? super AttributeContainer> configureAction)
      Adjust the attributes of this dependency
      Seit:
      4.8
    • getModule

      ModuleIdentifier getModule()
      The module identifier of the component. Returns the same information as getGroup() and getName().
      Gibt zurück:
      the module identifier
      Seit:
      4.9