@Documented @Retention(value=RUNTIME) @Target(value=TYPE) @Repeatable(value=Uses.Container.class) public @interface Uses
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.
Copyright © 2021. All rights reserved.