Interface ArtifactReferenceResolverStrategy<T,S>
-
- Type Parameters:
T- The type of the payload that matches with the schema.S- The type of schema thisArtifactReferenceResolverStrategyhandles.
- All Known Implementing Classes:
DestinationIdStrategy,SolaceTopicIdStrategy
public interface ArtifactReferenceResolverStrategy<T,S>An interface used by theSchemaResolverto resolve anArtifactReference. ThisArtifactReferenceindicates where the schema is located or should be registered within the registry.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ArtifactReferenceartifactReference(Record<T> data, ParsedSchema<S> parsedSchema)Resolves and returns theArtifactReferencefor a given record.default booleanloadSchema()Determines whether to load and provide the parsed schema to theartifactReference(Record, ParsedSchema)method.
-
-
-
Method Detail
-
artifactReference
ArtifactReference artifactReference(Record<T> data, ParsedSchema<S> parsedSchema)
Resolves and returns theArtifactReferencefor a given record. ThisArtifactReferenceindicates where the schema is located or should be registered within the registry.- Parameters:
data- The record for which to resolve theArtifactReference.parsedSchema- The schema of the record being resolved. This can be null ifloadSchema()returns false.- Returns:
- The
ArtifactReferenceunder which the schema is located or should be registered.
-
loadSchema
default boolean loadSchema()
Determines whether to load and provide the parsed schema to theartifactReference(Record, ParsedSchema)method.- Returns:
- true if the schema should be loaded and passed, false otherwise. Default implementation returns true.
-
-