Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Annotation class discovery with Vaadin

John Rizzo
1 decade ago Apr 29, 2010 12:15pm
Dmitri Livotov
1 decade ago Apr 29, 2010 1:21pm
John Rizzo
1 decade ago Apr 30, 2010 3:25pm
Dmitri Livotov
1 decade ago Apr 30, 2010 3:32pm
John Rizzo
1 decade ago Apr 30, 2010 8:05pm
Joonas Lehtinen
1 decade ago May 02, 2010 3:53pm
John Rizzo
1 decade ago May 04, 2010 9:18am
Henri Sara
1 decade ago May 04, 2010 10:04am

Vaadin itself does not search for annotations at runtime.

The WidgetMapGenerator (run at the beginning of widgetset compilation) does search for annotations by loading classes in the classpath and checking the Class objects for the annotation. This is far from ideal, but we found it acceptable in this phase (widgetset compilation) and it does not introduce additional dependencies. ClassPathExplorer implements the search for classes with specific annotations.

John Rizzo
1 decade ago May 05, 2010 8:43am