Package com.vaadin.spring.internal
Class SpringViewDisplayRegistrationBean
java.lang.Object
com.vaadin.spring.internal.SpringViewDisplayRegistrationBean
- All Implemented Interfaces:
Serializable
Dynamically registered bean which can provide a reference to the current view
display instance.
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>Returns the view display bean class (if set).Returns the view display bean name (if set).getSpringViewDisplay(org.springframework.context.ApplicationContext applicationContext) voidsetBeanClass(Class<?> beanClass) Set the class of the bean that has the view display annotation.voidsetBeanName(String beanName) Set the name of the bean that has the view display annotation.
-
Constructor Details
-
SpringViewDisplayRegistrationBean
public SpringViewDisplayRegistrationBean()
-
-
Method Details
-
getSpringViewDisplay
public Object getSpringViewDisplay(org.springframework.context.ApplicationContext applicationContext) -
setBeanClass
Set the class of the bean that has the view display annotation. Either this method orsetBeanName(String)should be called.- Parameters:
beanClass- class of the bean that contains the SpringViewDisplay annotation or has it directly on the class
-
setBeanName
Set the name of the bean that has the view display annotation. Either this method orsetBeanClass(Class)should be called.- Parameters:
beanName- name of the bean that has the SpringViewDisplay annotation
-
getBeanClass
Returns the view display bean class (if set).- Returns:
- view display bean class or null if using bean name
-
getBeanName
Returns the view display bean name (if set).- Returns:
- view display bean name or null if using bean class
-