Class OpenApiFeatureBeanPostProcessor

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.BeanPostProcessor

    public class OpenApiFeatureBeanPostProcessor
    extends Object
    implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.BeanFactoryAware
    Post-processes all OpenApiFeature beans in order to inject the instance of OpenApiCustomizer (if it is not set yet). For Spring / Spring Boot applications it is what you would need to do manually most of the time.
    • Constructor Detail

      • OpenApiFeatureBeanPostProcessor

        public OpenApiFeatureBeanPostProcessor()
    • Method Detail

      • postProcessAfterInitialization

        public Object postProcessAfterInitialization​(Object bean,
                                                     String beanName)
                                              throws org.springframework.beans.BeansException
        Specified by:
        postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
        Throws:
        org.springframework.beans.BeansException
      • setBeanFactory

        public void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)
                            throws org.springframework.beans.BeansException
        Specified by:
        setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
        Throws:
        org.springframework.beans.BeansException