Annotation Interface Uses


Marks that an annotated component implicitly uses another component. This will ensure that any dependencies of the used component are also loaded.

Marking class A with @Uses(B.class) will ensure all StyleSheet, JavaScript dependencies for class B are loaded when class A is used.

For PolymerTemplate implementations, used components will also be instantiated if an element with the corresponding @Tag value is defined in the template. Note that Polymer template support is deprecated - we recommend you to use LitTemplate instead. Read more details from the Vaadin blog.

Since:
1.0
Author:
Vaadin Ltd
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    Internal annotation to enable use of multiple Uses annotations.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Component>
    Marks the component class to depend on.
  • Element Details

    • value

      Class<? extends Component> value
      Marks the component class to depend on.
      Returns:
      the component class to depend on