Class SpringViewDisplayRegistrationBean

java.lang.Object
com.vaadin.spring.internal.SpringViewDisplayRegistrationBean
All Implemented Interfaces:
Serializable

public class SpringViewDisplayRegistrationBean extends Object implements Serializable
Dynamically registered bean which can provide a reference to the current view display instance.
Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • SpringViewDisplayRegistrationBean

      public SpringViewDisplayRegistrationBean()
  • Method Details

    • getSpringViewDisplay

      public Object getSpringViewDisplay(org.springframework.context.ApplicationContext applicationContext)
    • setBeanClass

      public void setBeanClass(Class<?> beanClass)
      Set the class of the bean that has the view display annotation. Either this method or setBeanName(String) should be called.
      Parameters:
      beanClass - class of the bean that contains the SpringViewDisplay annotation or has it directly on the class
    • setBeanName

      public void setBeanName(String beanName)
      Set the name of the bean that has the view display annotation. Either this method or setBeanClass(Class) should be called.
      Parameters:
      beanName - name of the bean that has the SpringViewDisplay annotation
    • getBeanClass

      public Class<?> getBeanClass()
      Returns the view display bean class (if set).
      Returns:
      view display bean class or null if using bean name
    • getBeanName

      public String getBeanName()
      Returns the view display bean name (if set).
      Returns:
      view display bean name or null if using bean class