com.vaadin.spring.annotation
Annotation Type ViewScope


@Scope(value="vaadin-view")
@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
@Documented
public @interface ViewScope

Stereotype annotation for Spring's @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.

Author:
Petter Holmström (petter@vaadin.com)



Copyright © 2016 Vaadin Ltd. All Rights Reserved.