Package io.smallrye.openapi.api
Class OpenApiConfigImpl
- java.lang.Object
-
- io.smallrye.openapi.api.OpenApiConfigImpl
-
- All Implemented Interfaces:
OpenApiConfig
public class OpenApiConfigImpl extends Object implements OpenApiConfig
Implementation of theOpenApiConfiginterface that gets config information from a standard MP Config object.- Author:
- eric.wittmann@gmail.com
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.smallrye.openapi.api.OpenApiConfig
OpenApiConfig.AutoInheritance, OpenApiConfig.DuplicateOperationIdBehavior, OpenApiConfig.OperationIdStrategy
-
-
Field Summary
-
Fields inherited from interface io.smallrye.openapi.api.OpenApiConfig
DUPLICATE_OPERATION_ID_BEHAVIOR_DEFAULT, MAXIMUM_STATIC_FILE_SIZE_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description OpenApiConfigImpl(org.eclipse.microprofile.config.Config config)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Optional<Boolean>allowNakedPathParameter()static OpenApiConfigfromConfig(org.eclipse.microprofile.config.Config config)Deprecated.useOpenApiConfig.fromConfig(Config)insteadprotected org.eclipse.microprofile.config.ConfiggetConfig()<R,T>
TgetConfigValue(String propertyName, Class<R> type, Function<R,T> converter, Supplier<T> defaultValue)<R,T>
Map<String,T>getConfigValueMap(String propertyNamePrefix, Class<R> type, Function<R,T> converter)protected <T> Optional<T>getOptionalValue(String propertyName, Class<T> type)protected Iterable<String>getPropertyNames()protected <T> TgetValue(String propertyName, Class<T> type)voidsetAllowNakedPathParameter(Boolean allowNakedPathParameter)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.smallrye.openapi.api.OpenApiConfig
applicationPathDisable, arrayReferencesEnable, customSchemaRegistryClass, doAllowNakedPathParameter, filter, getAutoInheritance, getConfigValue, getDefaultConsumes, getDefaultPrimitivesConsumes, getDefaultPrimitivesProduces, getDefaultProduces, getDefaultStreamingConsumes, getDefaultStreamingProduces, getDuplicateOperationIdBehavior, getInfoContactEmail, getInfoContactName, getInfoContactUrl, getInfoDescription, getInfoLicenseName, getInfoLicenseUrl, getInfoTermsOfService, getInfoTitle, getInfoVersion, getMaximumStaticFileSize, getOpenApiVersion, getOperationIdStrategy, getScanExcludeProfiles, getScanProfiles, getScanResourceClasses, getSchemas, modelReader, operationServers, pathServers, privatePropertiesEnable, propertyNamingStrategy, removeUnusedSchemas, scanBeanValidation, scanClasses, scanDependenciesDisable, scanDependenciesJars, scanDisable, scanExcludeClasses, scanExcludePackages, scanPackages, servers, sortedPropertiesEnable, toList, toSet
-
-
-
-
Method Detail
-
fromConfig
@Deprecated public static OpenApiConfig fromConfig(org.eclipse.microprofile.config.Config config)
Deprecated.useOpenApiConfig.fromConfig(Config)instead
-
getConfig
protected org.eclipse.microprofile.config.Config getConfig()
- Returns:
- the MP config instance
-
allowNakedPathParameter
public Optional<Boolean> allowNakedPathParameter()
- Specified by:
allowNakedPathParameterin interfaceOpenApiConfig
-
setAllowNakedPathParameter
public void setAllowNakedPathParameter(Boolean allowNakedPathParameter)
- Specified by:
setAllowNakedPathParameterin interfaceOpenApiConfig
-
getConfigValue
public <R,T> T getConfigValue(String propertyName, Class<R> type, Function<R,T> converter, Supplier<T> defaultValue)
- Specified by:
getConfigValuein interfaceOpenApiConfig
-
getConfigValueMap
public <R,T> Map<String,T> getConfigValueMap(String propertyNamePrefix, Class<R> type, Function<R,T> converter)
- Specified by:
getConfigValueMapin interfaceOpenApiConfig
-
-