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 Summary
Modifier and TypeMethodDescriptionartifactReference(Record<DATA> data, ParsedSchema<SCHEMA> parsedSchema) For a given Record, returns theArtifactReferenceunder which the message schemas are located or should be registered in the registry.default booleanWhether or not to load and pass the parsed schema to theartifactReference(Record, ParsedSchema)lookup method
-
Method Details
-
artifactReference
For a given Record, returns theArtifactReferenceunder which the message schemas are located or should be registered in the registry.- Parameters:
data- record for which we want to resolve the ArtifactReferenceparsedSchema- the schema of the record being resolved, can be null ifloadSchema()is set to false- Returns:
- the
ArtifactReferenceunder 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 theartifactReference(Record, ParsedSchema)lookup method
-