public class GenericOpenApiContext<T extends GenericOpenApiContext> extends Object implements OpenApiContext
Modifier and Type | Field and Description |
---|---|
protected String |
configLocation |
protected String |
id |
protected OpenApiContext |
parent |
protected Set<String> |
resourceClasses |
protected Set<String> |
resourcePackages |
OPENAPI_CONTEXT_ID_DEFAULT, OPENAPI_CONTEXT_ID_KEY, OPENAPI_CONTEXT_ID_PREFIX
Constructor and Description |
---|
GenericOpenApiContext() |
protected String id
protected OpenApiContext parent
protected String configLocation
public long getCacheTTL()
public void setCacheTTL(long cacheTTL)
public T cacheTTL(long cacheTTL)
public OpenApiReader getOpenApiReader()
public void setOpenApiReader(OpenApiReader openApiReader)
setOpenApiReader
in interface OpenApiContext
public OpenApiScanner getOpenApiScanner()
public void setOpenApiScanner(OpenApiScanner openApiScanner)
setOpenApiScanner
in interface OpenApiContext
public final T openApiReader(OpenApiReader openApiReader)
public final T openApiScanner(OpenApiScanner openApiScanner)
public T openApiConfiguration(OpenAPIConfiguration openApiConfiguration)
public String getConfigLocation()
getConfigLocation
in interface OpenApiContext
public void setConfigLocation(String configLocation)
public String getId()
getId
in interface OpenApiContext
public void setId(String id)
public OpenApiContext getParent()
getParent
in interface OpenApiContext
public void setParent(OpenApiContext parent)
public final T parent(OpenApiContext parent)
public ObjectMapperProcessor getObjectMapperProcessor()
public void setObjectMapperProcessor(ObjectMapperProcessor objectMapperProcessor)
setObjectMapperProcessor
in interface OpenApiContext
public final T objectMapperProcessor(ObjectMapperProcessor objectMapperProcessor)
public Set<io.swagger.v3.core.converter.ModelConverter> getModelConverters()
public void setModelConverters(Set<io.swagger.v3.core.converter.ModelConverter> modelConverters)
setModelConverters
in interface OpenApiContext
public final T modelConverters(Set<io.swagger.v3.core.converter.ModelConverter> modelConverters)
protected void register()
public OpenAPIConfiguration getOpenApiConfiguration()
getOpenApiConfiguration
in interface OpenApiContext
public void setOpenApiConfiguration(OpenAPIConfiguration openApiConfiguration)
protected OpenApiReader buildReader(OpenAPIConfiguration openApiConfiguration) throws Exception
Exception
protected OpenApiScanner buildScanner(OpenAPIConfiguration openApiConfiguration) throws Exception
Exception
protected ObjectMapperProcessor buildObjectMapperProcessor(OpenAPIConfiguration openApiConfiguration) throws Exception
Exception
protected Set<io.swagger.v3.core.converter.ModelConverter> buildModelConverters(OpenAPIConfiguration openApiConfiguration) throws Exception
Exception
protected List<org.apache.commons.lang3.tuple.ImmutablePair<String,String>> getKnownLocations()
protected Map<String,OpenApiConfigurationLoader> getLocationLoaders()
protected OpenAPIConfiguration loadConfiguration() throws OpenApiConfigurationException
OpenApiConfigurationException
public T init() throws OpenApiConfigurationException
init
in interface OpenApiContext
OpenApiConfigurationException
public io.swagger.v3.oas.models.OpenAPI read()
read
in interface OpenApiContext
protected void resetReader()
Copyright © 2020 JBoss by Red Hat. All rights reserved.