Package org.springdoc.api
Class AbstractMultipleOpenApiResource<R extends AbstractOpenApiResource>
java.lang.Object
org.springdoc.api.AbstractMultipleOpenApiResource<R>
- Type Parameters:
R- the type of OpenAPI resource
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public abstract class AbstractMultipleOpenApiResource<R extends AbstractOpenApiResource>
extends Object
implements org.springframework.beans.factory.InitializingBean
The type Abstract multiple open api resource.
- Author:
- bnasslahsen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.springframework.beans.factory.ObjectFactory<OpenAPIService> The Default open api builder.protected final OperationServiceThe Operation parser.protected final AbstractRequestServiceThe Request builder.protected final GenericResponseServiceThe Response builder.protected final SpringDocConfigPropertiesThe Spring doc config properties.protected final SpringDocProvidersThe Spring doc providers. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractMultipleOpenApiResource(List<GroupedOpenApi> groupedOpenApis, org.springframework.beans.factory.ObjectFactory<OpenAPIService> defaultOpenAPIBuilder, AbstractRequestService requestBuilder, GenericResponseService responseBuilder, OperationService operationParser, SpringDocConfigProperties springDocConfigProperties, SpringDocProviders springDocProviders, SpringDocCustomizers springDocCustomizers) Instantiates a new Abstract multiple open api resource. -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected abstract RBuild open api resource.protected RgetOpenApiResourceOrThrow(String group) Gets open api resource or throw.
-
Field Details
-
defaultOpenAPIBuilder
protected final org.springframework.beans.factory.ObjectFactory<OpenAPIService> defaultOpenAPIBuilderThe Default open api builder. -
requestBuilder
The Request builder. -
responseBuilder
The Response builder. -
operationParser
The Operation parser. -
springDocConfigProperties
The Spring doc config properties. -
springDocProviders
The Spring doc providers.
-
-
Constructor Details
-
AbstractMultipleOpenApiResource
protected AbstractMultipleOpenApiResource(List<GroupedOpenApi> groupedOpenApis, org.springframework.beans.factory.ObjectFactory<OpenAPIService> defaultOpenAPIBuilder, AbstractRequestService requestBuilder, GenericResponseService responseBuilder, OperationService operationParser, SpringDocConfigProperties springDocConfigProperties, SpringDocProviders springDocProviders, SpringDocCustomizers springDocCustomizers) Instantiates a new Abstract 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 providersspringDocCustomizers- the spring doc customizers
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
buildOpenApiResource
Build open api resource.- Parameters:
item- the grouped open api- Returns:
- the open api resource
-
getOpenApiResourceOrThrow
Gets open api resource or throw.- Parameters:
group- the group- Returns:
- the open api resource or throw
-