Interface ArtifactReferenceResolverStrategy<T,S>
-
- Type Parameters:
T
- The type of the payload that matches with the schema.S
- The type of schema thisArtifactReferenceResolverStrategy
handles.
- All Known Implementing Classes:
DestinationIdStrategy
,SolaceTopicIdStrategy
public interface ArtifactReferenceResolverStrategy<T,S>
An interface used by theSchemaResolver
to resolve anArtifactReference
. ThisArtifactReference
indicates 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 ArtifactReference
artifactReference(Record<T> data, ParsedSchema<S> parsedSchema)
Resolves and returns theArtifactReference
for a given record.default boolean
loadSchema()
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 theArtifactReference
for a given record. ThisArtifactReference
indicates 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
ArtifactReference
under 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.
-
-