Package com.vaadin.spring.internal
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.beans.factory.support.BeanNameGeneratorpostProcessAfterInitialization(Object bean, String beanName) postProcessBeforeInitialization(Object bean, String beanName) protected voidregisterSpringViewDisplayBean(Class<?> clazz) Create a view display registration bean definition to allow accessing annotated view displays for the current UI scope.protected voidregisterSpringViewDisplayBean(String beanName) Create a view display registration bean definition to allow accessing annotated view displays for the current UI scope.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) voidsetBeanNameGenerator(org.springframework.beans.factory.support.BeanNameGenerator beanNameGenerator)
-
Constructor Details
-
SpringViewDisplayPostProcessor
public SpringViewDisplayPostProcessor()
-
-
Method Details
-
postProcessAfterInitialization
public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessAfterInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
registerSpringViewDisplayBean
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
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:
postProcessBeforeInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) - Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware
-
getBeanNameGenerator
public org.springframework.beans.factory.support.BeanNameGenerator getBeanNameGenerator() -
setBeanNameGenerator
public void setBeanNameGenerator(org.springframework.beans.factory.support.BeanNameGenerator beanNameGenerator)
-