Annotation Type Uses
-
@Documented @Retention(RUNTIME) @Target(TYPE) @Repeatable(Container.class) 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.Marking class A with
@Uses(B.class)
will ensure allStyleSheet
,JavaScript
dependencies for classB
are loaded when classA
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 useLitTemplate
instead. Read more details from the Vaadin blog.- Since:
- 1.0
- Author:
- Vaadin Ltd