Class MultipleOpenApiResource

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean
    Direct Known Subclasses:
    MultipleOpenApiActuatorResource, MultipleOpenApiWebMvcResource

    public abstract class MultipleOpenApiResource
    extends Object
    implements org.springframework.beans.factory.InitializingBean
    The type Web mvc multiple open api resource.
    Author:
    bnasslahsen
    • Constructor Detail

      • MultipleOpenApiResource

        public MultipleOpenApiResource​(List<GroupedOpenApi> groupedOpenApis,
                                       org.springframework.beans.factory.ObjectFactory<OpenAPIService> defaultOpenAPIBuilder,
                                       AbstractRequestService requestBuilder,
                                       GenericResponseService responseBuilder,
                                       OperationService operationParser,
                                       org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping requestMappingHandlerMapping,
                                       Optional<ActuatorProvider> actuatorProvider,
                                       SpringDocConfigProperties springDocConfigProperties,
                                       Optional<SecurityOAuth2Provider> springSecurityOAuth2Provider,
                                       Optional<RouterFunctionProvider> routerFunctionProvider,
                                       Optional<RepositoryRestResourceProvider> repositoryRestResourceProvider)
        Instantiates a new Multiple open api resource.
        Parameters:
        groupedOpenApis - the grouped open apis
        defaultOpenAPIBuilder - the default open api builder
        requestBuilder - the request builder
        responseBuilder - the response builder
        operationParser - the operation parser
        requestMappingHandlerMapping - the request mapping handler mapping
        actuatorProvider - the actuator provider
        springDocConfigProperties - the spring doc config properties
        springSecurityOAuth2Provider - the spring security o auth 2 provider
        routerFunctionProvider - the router function provider
        repositoryRestResourceProvider - the repository rest resource provider
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • getOpenApiResourceOrThrow

        protected OpenApiResource getOpenApiResourceOrThrow​(String group)
        Gets open api resource or throw.
        Parameters:
        group - the group
        Returns:
        the open api resource or throw