Class InstanceOpenAPIRegistry
java.lang.Object
org.apache.servicecomb.solution.basic.integration.InstanceOpenAPIRegistry
- All Implemented Interfaces:
org.apache.servicecomb.core.provider.OpenAPIRegistry,org.springframework.core.Ordered
public class InstanceOpenAPIRegistry
extends Object
implements org.apache.servicecomb.core.provider.OpenAPIRegistry
-
Field Summary
Fields inherited from interface org.apache.servicecomb.core.provider.OpenAPIRegistry
CONFIG_PREFIXFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()intgetOrder()loadOpenAPI(String application, String serviceName) voidregisterOpenAPI(String application, String serviceName, String schemaId, io.swagger.v3.oas.models.OpenAPI api) voidsetDiscoveryManager(org.apache.servicecomb.registry.DiscoveryManager discoveryManager) voidsetEnvironment(org.springframework.core.env.Environment environment) voidsetOpenAPIChangeListener(org.apache.servicecomb.core.provider.OpenAPIRegistryManager.OpenAPIChangeListener listener) voidsetTransportManager(org.apache.servicecomb.core.transport.TransportManager transportManager)
-
Constructor Details
-
InstanceOpenAPIRegistry
public InstanceOpenAPIRegistry()
-
-
Method Details
-
setDiscoveryManager
@Autowired public void setDiscoveryManager(org.apache.servicecomb.registry.DiscoveryManager discoveryManager) -
setEnvironment
@Autowired public void setEnvironment(org.springframework.core.env.Environment environment) -
setTransportManager
@Autowired public void setTransportManager(org.apache.servicecomb.core.transport.TransportManager transportManager) -
enabled
public boolean enabled()- Specified by:
enabledin interfaceorg.apache.servicecomb.core.provider.OpenAPIRegistry
-
registerOpenAPI
public void registerOpenAPI(String application, String serviceName, String schemaId, io.swagger.v3.oas.models.OpenAPI api) - Specified by:
registerOpenAPIin interfaceorg.apache.servicecomb.core.provider.OpenAPIRegistry
-
loadOpenAPI
public Map<String,io.swagger.v3.oas.models.OpenAPI> loadOpenAPI(String application, String serviceName) - Specified by:
loadOpenAPIin interfaceorg.apache.servicecomb.core.provider.OpenAPIRegistry
-
setOpenAPIChangeListener
public void setOpenAPIChangeListener(org.apache.servicecomb.core.provider.OpenAPIRegistryManager.OpenAPIChangeListener listener) - Specified by:
setOpenAPIChangeListenerin interfaceorg.apache.servicecomb.core.provider.OpenAPIRegistry
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-