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 at
AbstractSchemaResolver
Base implementation of SchemaResolver- Author:
- Fabian Martinez, Jakub Senko m@jsenko.net
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ArtifactReferenceResolverStrategy<S,T> Deprecated.protected io.apicurio.rest.client.spi.ApicurioHttpClientDeprecated.protected io.apicurio.registry.rest.client.RegistryClientDeprecated.protected StringDeprecated.protected StringDeprecated.protected StringDeprecated.protected booleanDeprecated.protected final ERCache<SchemaLookupResult<S>>Deprecated.protected SchemaParser<S,T> Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.voidconfigure(Map<String, ?> configs, boolean isKey, SchemaParser<S> schemaParser) Deprecated.Configure, if supported.voidDeprecated.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, waitMethods inherited from interface io.apicurio.registry.serde.SchemaResolver
resolveSchema, resolveSchema, resolveSchemaByArtifactReference, resolveSchemaByArtifactReference, setArtifactResolverStrategy
-
Field Details
-
schemaCache
Deprecated. -
schemaParser
Deprecated. -
client
protected io.apicurio.registry.rest.client.RegistryClient clientDeprecated. -
authClient
protected io.apicurio.rest.client.spi.ApicurioHttpClient authClientDeprecated. -
isKey
protected boolean isKeyDeprecated. -
artifactResolverStrategy
Deprecated. -
explicitArtifactGroupId
Deprecated. -
explicitArtifactId
Deprecated. -
explicitArtifactVersion
Deprecated.
-
-
Constructor Details
-
AbstractSchemaResolver
public AbstractSchemaResolver()Deprecated.
-
-
Method Details
-
configure
Deprecated.- Specified by:
configurein interfaceSchemaResolver<S,T> - Specified by:
configurein interfaceSchemaResolver<S,T> - See Also:
-
configure
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:
-
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
Deprecated.- Specified by:
getSchemaParserin interfaceSchemaResolver<S,T> - See Also:
-
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
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:
-
close
Deprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceSchemaResolver<S,T> - Throws:
IOException- See Also:
-
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.
-