@Component public class ProducerSchemaFactory extends AbstractSchemaFactory<ProducerSchemaContext>
| Modifier and Type | Field and Description |
|---|---|
protected ProducerArgumentsMapperFactory |
producerArgsMapperFactory |
compositeSwaggerGeneratorContext, microserviceMetaManager, schemaLoader| Constructor and Description |
|---|
ProducerSchemaFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
connectToProvider(ProducerSchemaContext context) |
protected void |
createOperation(ProducerSchemaContext context,
OperationMeta operationMeta,
ProducerArgumentsMapper argsMapper) |
protected SchemaMeta |
createSchema(ProducerSchemaContext context) |
protected io.servicecomb.swagger.generator.core.SwaggerGenerator |
generateSwagger(ProducerSchemaContext context) |
SchemaMeta |
getOrCreateProducerSchema(String microserviceName,
String schemaId,
Class<?> producerClass,
Object producerInstance) |
generateSchemaPath, getOrCreateSchema, loadSwagger@Inject protected ProducerArgumentsMapperFactory producerArgsMapperFactory
public SchemaMeta getOrCreateProducerSchema(String microserviceName, String schemaId, Class<?> producerClass, Object producerInstance)
protected void connectToProvider(ProducerSchemaContext context)
connectToProvider in class AbstractSchemaFactory<ProducerSchemaContext>protected io.servicecomb.swagger.generator.core.SwaggerGenerator generateSwagger(ProducerSchemaContext context)
generateSwagger in class AbstractSchemaFactory<ProducerSchemaContext>protected SchemaMeta createSchema(ProducerSchemaContext context)
createSchema in class AbstractSchemaFactory<ProducerSchemaContext>protected void createOperation(ProducerSchemaContext context, OperationMeta operationMeta, ProducerArgumentsMapper argsMapper)
Copyright © 2017. All rights reserved.