Package org.springdoc.webmvc.api
Class MultipleOpenApiResource
- java.lang.Object
-
- org.springdoc.webmvc.api.MultipleOpenApiResource
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
MultipleOpenApiActuatorResource,MultipleOpenApiWebMvcResource
public abstract class MultipleOpenApiResource extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
The type Web mvc multiple open api resource.- Author:
- bnasslahsen
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.context.ApplicationContextapplicationContextThe Application context.
-
Constructor Summary
Constructors Constructor Description MultipleOpenApiResource(List<GroupedOpenApi> groupedOpenApis, org.springframework.beans.factory.ObjectFactory<OpenAPIService> defaultOpenAPIBuilder, AbstractRequestService requestBuilder, GenericResponseService responseBuilder, OperationService operationParser, SpringDocConfigProperties springDocConfigProperties, SpringDocProviders springDocProviders)Instantiates a new Multiple open api resource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()protected OpenApiResourcegetOpenApiResourceOrThrow(String group)Gets open api resource or throw.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Constructor Detail
-
MultipleOpenApiResource
public MultipleOpenApiResource(List<GroupedOpenApi> groupedOpenApis, org.springframework.beans.factory.ObjectFactory<OpenAPIService> defaultOpenAPIBuilder, AbstractRequestService requestBuilder, GenericResponseService responseBuilder, OperationService operationParser, SpringDocConfigProperties springDocConfigProperties, SpringDocProviders springDocProviders)
Instantiates a new Multiple open api resource.- Parameters:
groupedOpenApis- the grouped open apisdefaultOpenAPIBuilder- the default open api builderrequestBuilder- the request builderresponseBuilder- the response builderoperationParser- the operation parserspringDocConfigProperties- the spring doc config propertiesspringDocProviders- the spring doc providers
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
getOpenApiResourceOrThrow
protected OpenApiResource getOpenApiResourceOrThrow(String group)
Gets open api resource or throw.- Parameters:
group- the group- Returns:
- the open api resource or throw
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
-