Interface Strategy

All Known Implementing Classes:
AprVersionStrategy, DefaultVersionStrategy, SingleDigitVersionStrategy, TwoDigitsBackwardCompatibleVersionStrategy

public interface Strategy
A strategy implementation decides whether two versions are compatible with each other.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    isCompatible(org.apache.maven.artifact.versioning.ComparableVersion expectedVersion, org.apache.maven.artifact.versioning.ComparableVersion resolvedVersion)
     
  • Method Details

    • getName

      String getName()
      Returns:
      The name of the strategy.
    • isCompatible

      boolean isCompatible(org.apache.maven.artifact.versioning.ComparableVersion expectedVersion, org.apache.maven.artifact.versioning.ComparableVersion resolvedVersion)
      Parameters:
      expectedVersion - The artifact version expected (artifact version b).
      resolvedVersion - The proposed artifact version (artifact version a).
      Returns:
      True if an artifact with Version b can be replaced by an artifact with Version a.