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
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
The Application context. -
Constructor Summary
ConstructorsConstructorDescriptionMultipleOpenApiResource
(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
Modifier and TypeMethodDescriptionvoid
protected OpenApiResource
getOpenApiResourceOrThrow
(String group) Gets open api resource or throw.void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext)
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContextThe Application context.
-
-
Constructor Details
-
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 Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
getOpenApiResourceOrThrow
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:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-