Interface ArtifactReferenceResolverStrategy<SCHEMA,DATA>

All Known Implementing Classes:
DynamicArtifactReferenceResolverStrategy

public interface ArtifactReferenceResolverStrategy<SCHEMA,DATA>
This interface is used by the SchemaResolver to determine the ArtifactReference under which the message schemas are located or should be registered in the registry.
Author:
Fabian Martinez
  • Method Details

    • artifactReference

      ArtifactReference artifactReference(Record<DATA> data, ParsedSchema<SCHEMA> parsedSchema)
      For a given Record, returns the ArtifactReference under which the message schemas are located or should be registered in the registry.
      Parameters:
      data - record for which we want to resolve the ArtifactReference
      parsedSchema - the schema of the record being resolved, can be null if loadSchema() is set to false
      Returns:
      the ArtifactReference under which the message schemas are located or should be registered
    • loadSchema

      default boolean loadSchema()
      Whether or not to load and pass the parsed schema to the artifactReference(Record, ParsedSchema) lookup method