@Scope(value="vaadin-view") @Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented public @interface ViewScope
@Scope("vaadin-view"). The
lifecycle of a bean in this scope starts when a user navigates to a view that
refers to the bean, and ends when the user navigates out of the view (or the
Vaadin UI itself is destroyed). Please note that the
class itself must also be in this scope. In
other words, it is not possible to use view scoped beans inside a
prototype or UI scoped view.Copyright © 2019 Vaadin Ltd. All Rights Reserved.