@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @VaadinComponent @VaadinViewScope public @interface VaadinView
View-classes that should be
handled by the SpringViewProvider.
This annotation is also a stereotype annotation, so Spring will automatically detect the annotated classes.
By default, this annotation also puts the view into the view scope.
You can override this by using another scope annotation, such as the UI scope, on your
view class. However, the singleton scope will not work!
This is an example of a view that is mapped to an empty view name and is available for all UI subclasses in the application:
@VaadinView(name = "")
public class MyDefaultView extends CustomComponent implements View {
// ...
}
This is an example of a view that is only available to a specified UI subclass:
@VaadinView(name = "myView", ui = MyUI.class)
public class MyView extends CustomComponent implements View {
// ...
}
public abstract Class<? extends com.vaadin.ui.UI>[] ui
Copyright © 2015. All rights reserved.