Class PageObjectBeanPostProcessor

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

    @Component("tapirPageObjectBeanPostProcessor")
    public class PageObjectBeanPostProcessor
    extends java.lang.Object
    implements org.springframework.beans.factory.config.BeanPostProcessor
    For beans annotated with Page or PageComponent subclasses of this class should initialize the corresponding page elements, for instance by injecting the fields

    If the processed bean implements PageActiveCheck a PageMethodInterceptor is wrapped around the instance in order to provide page check capabilities.
    Since:
    2.0.0
    Author:
    Oliver Libutzki <[email protected]>, Nils Christian Ehmke <[email protected]>
    See Also:
    PageMethodInterceptor, PageActiveCheck
    • Constructor Detail

      • PageObjectBeanPostProcessor

        public PageObjectBeanPostProcessor()
    • Method Detail

      • postProcessBeforeInitialization

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

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