use of io.servicecomb.core.ProducerProvider in project java-chassis by ServiceComb.
the class ProducerProviderManager method init.
public void init() throws Exception {
for (ProducerProvider provider : producerProviderList) {
provider.init();
}
MicroserviceMeta microserviceMeta = microserviceMetaManager.getOrCreateMicroserviceMeta(RegistryUtils.getMicroservice().getServiceName());
for (SchemaMeta schemaMeta : microserviceMeta.getSchemaMetas()) {
String content = SchemaUtils.swaggerToString(schemaMeta.getSwagger());
RegistryUtils.getMicroservice().addSchema(schemaMeta.getSchemaId(), content);
}
}
Aggregations