com.vaadin.flow.component.dependency.

Annotation Type Uses

  • Deprecated. 

    Polymer template support is deprecated - we recommend you to use LitTemplate instead. Read more details from the Vaadin blog.


    @Documented
     @Retention(value=RUNTIME)
     @Target(value=TYPE)
     @Repeatable(value=Uses.Container.class)
     @Deprecated
    public @interface Uses

    Marks that an annotated component implicitly uses another component. This will ensure that any dependencies of the used component are also loaded. For PolymerTemplate implementations, used components will also be instantiated if an element with the corresponding @Tag value is defined in the template.

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

    Since:

    1.0

    Author:

    Vaadin Ltd

    • Required Element Summary

      Required Elements
      Modifier and Type Required Element and Description
      Class<? extends Component> value

      Deprecated. 

      Marks the component class to depend on.

    • Element Detail

      • value

        public abstract Class<? extends Component> value

        Deprecated. 

        Marks the component class to depend on.

        Returns:

        the component class to depend on