Compile time annotation processing, Ianislav Trendafilov

Опубликовано: 16 Октябрь 2024
на канале: Bulgarian Java User Group
793
9

Since 2006 Java was extended with JSR 269: Pluggable Annotation Processing API. A lot of projects utilize this to automate everyday tasks. A well-known example is Project Lombok. It helps out with generating recurring code templates for Constructor/Getter/Setter methods and Builders. In the session you will learn the basic usage patterns of Lombok. You will also dig deeper into how to write your own annotation processors. Session will show a working example of a translator that uses POJO class as input to generate data structures in TypeScript as an output for use in a REST API client. Session will also show how to generate custom documentation of your REST API directly from your code.