@Stereotype @Retention(value=RUNTIME) @Target(value={FIELD,TYPE}) public @interface CDIView
View and annotated with @CDIView
are automatically registered with CDIViewProvider for use by
CDINavigator.
By default, the view name is derived from the class name of the annotated
class, but this can also be overridden by defining a value().
@CDIView views are by default ViewScoped.
On a @CDIView view the strategy for the view context
can be defined by annotating the view with a
ViewContextStrategyQualifier annotation.
By default it is ViewContextByNameAndParameters.
Named| Modifier and Type | Fields and Description |
|---|---|
static String |
USE_CONVENTIONS
USE_CONVENTIONS is treated as a special case that will cause the
automatic View mapping to occur.
|
public static final String USE_CONVENTIONS
public abstract String value
Example: UserDetailView by convention becomes "user-detail" and UserCDIExample becomes "user-cdi-example".
public abstract Class<? extends com.vaadin.ui.UI>[] uis
CDIViewProvider only lists
the views that have the current UI on this list.
If this list contains UI.class, the view is available for all UIs.
This only needs to be specified if the application has multiple UIs that
use CDIViewProvider.
Copyright © 2018 Vaadin Ltd. All Rights Reserved.