Package io.apicurio.registry.serde
Class AbstractSchemaResolver<S,T>
- java.lang.Object
-
- io.apicurio.registry.serde.AbstractSchemaResolver<S,T>
-
- All Implemented Interfaces:
SchemaResolver<S,T>,SchemaResolver<S,T>,Closeable,AutoCloseable
@Deprecated public abstract class AbstractSchemaResolver<S,T> extends Object implements SchemaResolver<S,T>
Deprecated.This class is deprecated, it's recommended to migrate to the new implementation atAbstractSchemaResolverBase implementation ofSchemaResolver- Author:
- Fabian Martinez, Jakub Senko
-
-
Field Summary
Fields Modifier and Type Field Description protected ArtifactReferenceResolverStrategy<S,T>artifactResolverStrategyDeprecated.protected io.apicurio.rest.client.spi.ApicurioHttpClientauthClientDeprecated.protected io.apicurio.registry.rest.client.RegistryClientclientDeprecated.protected StringexplicitArtifactGroupIdDeprecated.protected StringexplicitArtifactIdDeprecated.protected StringexplicitArtifactVersionDeprecated.protected booleanisKeyDeprecated.protected ERCache<SchemaLookupResult<S>>schemaCacheDeprecated.protected SchemaParser<S,T>schemaParserDeprecated.
-
Constructor Summary
Constructors Constructor Description AbstractSchemaResolver()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.voidconfigure(Map<String,?> configs, boolean isKey, SchemaParser<S> schemaParser)Deprecated.Configure, if supported.voidconfigure(Map<String,?> configs, SchemaParser<S,T> schemaMapper)Deprecated.SchemaParser<S,T>getSchemaParser()Deprecated.protected voidloadFromArtifactMetaData(io.apicurio.registry.rest.v2.beans.ArtifactMetaData artifactMetadata, SchemaLookupResult.SchemaLookupResultBuilder<S> resultBuilder)Deprecated.protected voidloadFromArtifactMetaData(io.apicurio.registry.rest.v2.beans.VersionMetaData artifactMetadata, SchemaLookupResult.SchemaLookupResultBuilder<S> resultBuilder)Deprecated.voidreset()Deprecated.Hard reset cacheprotected ArtifactReferenceresolveArtifactReference(String topic, T data, ParsedSchema<S> parsedSchema)Deprecated.Resolve an artifact reference given the topic name, message headers, data, and optional parsed schema.protected SchemaLookupResult<S>resolveSchemaByGlobalId(long globalId)Deprecated.voidsetArtifactResolverStrategy(ArtifactReferenceResolverStrategy<S,T> artifactResolverStrategy)Deprecated.voidsetClient(io.apicurio.registry.rest.client.RegistryClient client)Deprecated.voidsetIsKey(boolean isKey)Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.apicurio.registry.serde.SchemaResolver
resolveSchema, resolveSchema, resolveSchemaByArtifactReference, resolveSchemaByArtifactReference, setArtifactResolverStrategy
-
-
-
-
Field Detail
-
schemaCache
protected final ERCache<SchemaLookupResult<S>> schemaCache
Deprecated.
-
schemaParser
protected SchemaParser<S,T> schemaParser
Deprecated.
-
client
protected io.apicurio.registry.rest.client.RegistryClient client
Deprecated.
-
authClient
protected io.apicurio.rest.client.spi.ApicurioHttpClient authClient
Deprecated.
-
isKey
protected boolean isKey
Deprecated.
-
artifactResolverStrategy
protected ArtifactReferenceResolverStrategy<S,T> artifactResolverStrategy
Deprecated.
-
explicitArtifactGroupId
protected String explicitArtifactGroupId
Deprecated.
-
explicitArtifactId
protected String explicitArtifactId
Deprecated.
-
explicitArtifactVersion
protected String explicitArtifactVersion
Deprecated.
-
-
Method Detail
-
configure
public void configure(Map<String,?> configs, SchemaParser<S,T> schemaMapper)
Deprecated.- Specified by:
configurein interfaceSchemaResolver<S,T>- Specified by:
configurein interfaceSchemaResolver<S,T>- See Also:
SchemaResolver.configure(java.util.Map, io.apicurio.registry.resolver.SchemaParser)
-
configure
public void configure(Map<String,?> configs, boolean isKey, SchemaParser<S> schemaParser)
Deprecated.Description copied from interface:SchemaResolverConfigure, if supported.- Specified by:
configurein interfaceSchemaResolver<S,T>- Parameters:
configs- the configsisKey- are we handling key or value- See Also:
SchemaResolver.configure(java.util.Map, boolean, io.apicurio.registry.serde.SchemaParser)
-
setClient
public void setClient(io.apicurio.registry.rest.client.RegistryClient client)
Deprecated.- Specified by:
setClientin interfaceSchemaResolver<S,T>- Specified by:
setClientin interfaceSchemaResolver<S,T>- Parameters:
client- the client to set
-
setArtifactResolverStrategy
public void setArtifactResolverStrategy(ArtifactReferenceResolverStrategy<S,T> artifactResolverStrategy)
Deprecated.- Specified by:
setArtifactResolverStrategyin interfaceSchemaResolver<S,T>- Parameters:
artifactResolverStrategy- the artifactResolverStrategy to set
-
setIsKey
public void setIsKey(boolean isKey)
Deprecated.- Parameters:
isKey- the isKey to set
-
getSchemaParser
public SchemaParser<S,T> getSchemaParser()
Deprecated.- Specified by:
getSchemaParserin interfaceSchemaResolver<S,T>- See Also:
SchemaResolver.getSchemaParser()
-
resolveArtifactReference
protected ArtifactReference resolveArtifactReference(String topic, T data, ParsedSchema<S> parsedSchema)
Deprecated.Resolve an artifact reference given the topic name, message headers, data, and optional parsed schema. This will use the artifact resolver strategy and then override the values from that strategy with any explicitly configured values (groupId, artifactId, version).- Parameters:
topic-headers-data-parsedSchema-
-
resolveSchemaByGlobalId
protected SchemaLookupResult<S> resolveSchemaByGlobalId(long globalId)
Deprecated.
-
reset
public void reset()
Deprecated.Description copied from interface:SchemaResolverHard reset cache- Specified by:
resetin interfaceSchemaResolver<S,T>- Specified by:
resetin interfaceSchemaResolver<S,T>- See Also:
SchemaResolver.reset()
-
close
public void close() throws IOExceptionDeprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceSchemaResolver<S,T>- Throws:
IOException- See Also:
Closeable.close()
-
loadFromArtifactMetaData
protected void loadFromArtifactMetaData(io.apicurio.registry.rest.v2.beans.ArtifactMetaData artifactMetadata, SchemaLookupResult.SchemaLookupResultBuilder<S> resultBuilder)Deprecated.
-
loadFromArtifactMetaData
protected void loadFromArtifactMetaData(io.apicurio.registry.rest.v2.beans.VersionMetaData artifactMetadata, SchemaLookupResult.SchemaLookupResultBuilder<S> resultBuilder)Deprecated.
-
-