com.vaadin.spring.internal
Class SpringViewDisplayPostProcessor

java.lang.Object
  extended by 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
SpringViewDisplayPostProcessor()
           
 
Method Summary
 org.springframework.beans.factory.support.BeanNameGenerator getBeanNameGenerator()
           
 Object postProcessAfterInitialization(Object bean, String beanName)
           
 Object postProcessBeforeInitialization(Object bean, String beanName)
           
protected  void registerSpringViewDisplayBean(Class<?> clazz)
          Create a view display registration bean definition to allow accessing annotated view displays for the current UI scope.
protected  void registerSpringViewDisplayBean(String beanName)
          Create a view display registration bean definition to allow accessing annotated view displays for the current UI scope.
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
           
 void setBeanNameGenerator(org.springframework.beans.factory.support.BeanNameGenerator beanNameGenerator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringViewDisplayPostProcessor

public SpringViewDisplayPostProcessor()
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

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)


Copyright © 2016 Vaadin Ltd. All Rights Reserved.