Class SpringViewDisplayPostProcessor

java.lang.Object
com.vaadin.spring.internal.SpringViewDisplayPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.ApplicationContextAware

public class SpringViewDisplayPostProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanFactoryAware
Bean post processor that scans for SpringViewDisplay annotations on UI scoped beans or bean classes and registers SpringViewDisplayRegistrationBean instances for them for SpringUIProvider.
Author:
Vaadin Ltd
  • Constructor Details

    • SpringViewDisplayPostProcessor

      public SpringViewDisplayPostProcessor()
  • Method Details

    • 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
    • registerSpringViewDisplayBean

      protected void registerSpringViewDisplayBean(Class<?> clazz)
      Create a view display registration bean definition to allow accessing annotated view displays for the current UI scope.
      Parameters:
      clazz - bean class having the view display annotation, not null
    • registerSpringViewDisplayBean

      protected void registerSpringViewDisplayBean(String beanName)
      Create a view display registration bean definition to allow accessing annotated view displays for the current UI scope.
      Parameters:
      beanName - name of the bean having the view display annotation, not null
    • postProcessBeforeInitialization

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

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
    • getBeanNameGenerator

      public org.springframework.beans.factory.support.BeanNameGenerator getBeanNameGenerator()
    • setBeanNameGenerator

      public void setBeanNameGenerator(org.springframework.beans.factory.support.BeanNameGenerator beanNameGenerator)