use of io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry in project schema-registry by confluentinc.
the class SchemaRegistryRestApplication method initSchemaRegistry.
protected KafkaSchemaRegistry initSchemaRegistry(SchemaRegistryConfig config) {
KafkaSchemaRegistry kafkaSchemaRegistry = null;
try {
kafkaSchemaRegistry = new KafkaSchemaRegistry(config, new SchemaRegistrySerializer());
kafkaSchemaRegistry.init();
} catch (SchemaRegistryException e) {
log.error("Error starting the schema registry", e);
onShutdown();
System.exit(1);
}
return kafkaSchemaRegistry;
}
Aggregations