Interface ArtifactMapper

All Known Implementing Classes:
ArtifactMapperImpl

public interface ArtifactMapper
Mapper between Artifact and Artifact.

Uses ADDER_PREFERRED strategy to use addAllExtensions() method instead of trying to instantiate ProtocolStringList. Enables full compile-time validation!

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ArtifactMapper
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Converts proto Artifact to domain Artifact.
    toProto(Artifact domain)
    Converts domain Artifact to proto Artifact.
  • Field Details

  • Method Details

    • toProto

      Artifact toProto(Artifact domain)
      Converts domain Artifact to proto Artifact. ADDER_PREFERRED strategy ensures MapStruct uses addAllExtensions() method.
    • fromProto

      Artifact fromProto(Artifact proto)
      Converts proto Artifact to domain Artifact. Handles empty string → null and Struct conversions via CommonFieldMapper.