Class 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 Detail

      • applicationContext

        protected org.springframework.context.ApplicationContext applicationContext
        The Application context.
    • 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 apis
        defaultOpenAPIBuilder - the 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
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.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:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException