Schnittstelle ComponentSelection


public interface ComponentSelection
Represents a tuple of the component selector of a module and a candidate version to be evaluated in a component selection rule.
  • Methodendetails

    • getCandidate

      Gets the candidate version of the module.
      Gibt zurück:
      the candidate version of the module
    • getMetadata

      Gets the metadata of the component.

      The metadata may not be available, in which case null is returned. Unavailable metadata may be caused by a module published without associated metadata.

      Gibt zurück:
      the ComponentMetadata or null if not available
      Seit:
      5.0
    • getDescriptor

      @Nullable <T> T getDescriptor(Class<T> descriptorClass)
      Used to access a specific descriptor format.

      For an Ivy module, an ivy module descriptor can be requested and returned.

      If the descriptor type requested does not exist for the module under selection, null is returned.

      Typparameter:
      T - the descriptor type
      Parameter:
      descriptorClass - the descriptor class
      Gibt zurück:
      a descriptor fo the requested type, or null if there was none of the requested type.
      Seit:
      5.0
      Siehe auch:
    • reject

      void reject(String reason)
      Rejects the candidate for the resolution.
      Parameter:
      reason - The reason the candidate was rejected.