Skip to content

Revealing the magic behind Java annotations

Photo of David G贸mez
Hosted By
David G. and Aurea M.
Revealing the magic behind Java annotations

Details

Este es el evento para registrarse si vas a asistir presencialmente.

鈿狅笍 馃嚜馃嚫 Esta sesi贸n ser谩 en espa帽ol / This session will be in Spanish

Annotations, introduced in Java 5 two decades ago, have revolutionised how we develop Java applications. Traditional frameworks like Spring and Hibernate rely on runtime annotation processing using reflection to perform tasks such as dependency injection or implement persistence operations.

Alternatively, the Java Annotation Processing API, introduced in Java 6 in 2006, allows developers to hook into the compilation phase to process sources and react to annotations present on them. This was leveraged by libraries like Lombok and Dagger, and frameworks such as Micronaut, although their way of processing annotations varies. Other frameworks like Quarkus perform the annotation processing during build time, instead of the compilation time.

In this session, Micronaut Framework committer 脕lvaro S谩nchez-Mariscal will explain with examples the different techniques that can be used for both runtime and compile-time processing of annotations, revealing the magic behind popular open-source projects.

Photo of MadridJUG group
MadridJUG
See more events
Oficinas de Oracle, Madrid
Paseo de la castellana 81, 28046 路 Madrid