Package io.apicurio.registry.resolver
Class DefaultSchemaResolver<S,T>
java.lang.Object
io.apicurio.registry.resolver.AbstractSchemaResolver<S,T>
io.apicurio.registry.resolver.DefaultSchemaResolver<S,T>
- All Implemented Interfaces:
SchemaResolver<S,,T> Closeable,AutoCloseable
Default implementation of
SchemaResolver- Author:
- Fabian Martinez, Jakub Senko m@jsenko.net
-
Field Summary
Fields inherited from class io.apicurio.registry.resolver.AbstractSchemaResolver
artifactResolverStrategy, authClient, client, config, explicitArtifactGroupId, explicitArtifactId, explicitArtifactVersion, schemaCache, schemaParser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure, if supported.voidreset()Hard reset cacheresolveSchema(Record<T> data) Used to register or to lookup a schema in the registryThe schema resolver may use different pieces of information from theArtifactReferenceImpldepending on the configuration of the schema resolver.protected SchemaLookupResult<S>resolveSchemaByContentHash(String contentHash) protected SchemaLookupResult<S>resolveSchemaByContentId(long contentId) Methods inherited from class io.apicurio.registry.resolver.AbstractSchemaResolver
close, getSchemaParser, loadFromArtifactMetaData, loadFromArtifactMetaData, resolveArtifactId, resolveArtifactReference, resolveReferences, resolveSchemaByGlobalId, setArtifactResolverStrategy, setClient
-
Constructor Details
-
DefaultSchemaResolver
public DefaultSchemaResolver()
-
-
Method Details
-
reset
public void reset()Description copied from interface:SchemaResolverHard reset cache- Specified by:
resetin interfaceSchemaResolver<S,T> - Overrides:
resetin classAbstractSchemaResolver<S,T> - See Also:
-
configure
Description copied from interface:SchemaResolverConfigure, if supported.- Specified by:
configurein interfaceSchemaResolver<S,T> - Overrides:
configurein classAbstractSchemaResolver<S,T> - Parameters:
configs- the configs- See Also:
-
resolveSchema
Description copied from interface:SchemaResolverUsed to register or to lookup a schema in the registry- Parameters:
data- , record containing metadata about it that can be used by the resolver to lookup a schema in the registry- Returns:
- SchemaLookupResult
- See Also:
-
resolveSchemaByArtifactReference
Description copied from interface:SchemaResolverThe schema resolver may use different pieces of information from theArtifactReferenceImpldepending on the configuration of the schema resolver.- Returns:
- SchemaLookupResult
- See Also:
-
resolveSchemaByContentId
-
resolveSchemaByContentHash
-