Annotation Interface CDIUI


@Stereotype @Retention(RUNTIME) @Target(TYPE) @Inherited public @interface CDIUI
All UIs need to be declared with this annotation. CDIUI annotation binds the lifecycle of a given UI to Vaadin's view lifecycle. There is one UI instance per tab and so multiple instances per session.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    An optional URI mapping.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    USE_CONVENTIONS is treated as a special case that will cause the automatic UI mapping to occur.
  • Field Details

    • USE_CONVENTIONS

      static final String USE_CONVENTIONS
      USE_CONVENTIONS is treated as a special case that will cause the automatic UI mapping to occur.
      See Also:
  • Element Details

    • value

      String value
      An optional URI mapping. If not specified, the mapping is going to be derived from the simple name of the class. A class WelcomeVaadin is going to be bound to "/welcome-vaadin". A class SampleCDIApplicationUI will be bound to "/sample-cdi-application". Passing an empty string as the value will be interpreted as the root of the application.
      Returns:
      the URI mapping of this UI
      Default:
      "USE CONVENTIONS"