Sirviendo Código

Álvaro Sánchez Mariscal - Revealing the magic behind Java annotations - Codemotion 25

7 de agosto de 2025Desarrollo de softwarecodemotiondesarrollo de software

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 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. Puedes seguir a Codemotion en sus redes sociales: @Codemotionworld // https://www.linkedin.com/company/codemotion/ // https://twitter.com/CodemoMadrid // https://www.instagram.com/codemotion_esp/ ------- Síguenos en nuestras redes sociales Web: https://sirviendocodigo.com/ LinkedIn: https://www.linkedin.com/company/sirviendo-codigo/ X: https://twitter.com/sirviendocodigo Instagram: https://www.instagram.com/sirviendo.codigo/ TikTok: https://www.tiktok.com/@sirviendo.codigo #java #annotation #code #sirviendocodigo

Vídeos relacionados