Interface ArtifactReferenceResolverStrategy<SCHEMA,DATA>
-
- All Known Implementing Classes:
DynamicArtifactReferenceResolverStrategy
public interface ArtifactReferenceResolverStrategy<SCHEMA,DATA>This interface is used by the SchemaResolver to determine theArtifactReferenceunder which the message schemas are located or should be registered in the registry.- Author:
- Fabian Martinez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ArtifactReferenceartifactReference(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 booleanloadSchema()Whether or not to load and pass the parsed schema to theartifactReference(Record, ParsedSchema)lookup method
-
-
-
Method Detail
-
artifactReference
ArtifactReference artifactReference(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.- 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
-
-