Class SchemaRegistry
java.lang.Object
tech.ydb.yoj.databind.schema.configuration.SchemaRegistry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic interfaceSchemaRegistry.SchemaCreator<I,S extends Schema<?>> static final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Only for testing.static @NonNull SchemaRegistry<T,I, S extends Schema<T>>
SgetOrCreate(@NonNull Class<? extends Schema> schemaClass, @NonNull SchemaRegistry.SchemaCreator<I, S> ctor, @NonNull SchemaRegistry.SchemaKey<I> schemaKey) @NonNull SchemaRegistry.NamingOverrides
-
Constructor Details
-
SchemaRegistry
public SchemaRegistry()
-
-
Method Details
-
getDefault
-
getOrCreate
@NonNull public <T,I, S getOrCreateS extends Schema<T>> (@NonNull @NonNull Class<? extends Schema> schemaClass, @NonNull @NonNull SchemaRegistry.SchemaCreator<I, S> ctor, @NonNull @NonNull SchemaRegistry.SchemaKey<I> schemaKey) -
namingOverrides
-
clear
public void clear()Only for testing. Do not use in production code.
-