Runtime code generation is widely used by many state-of-the-art Java frameworks for implementing POJO-centric APIs, but it also opens the door to assembling more modular applications. This presentation offers an introduction to runtime code generation and its use on the Java platform. Furthermore, it discusses the upsides and downsides of several code generation libraries such as ASM, Javassist, cglib, and Byte Buddy.
In this talk, I talk about Java instrumentations and my recent work with Byte Buddy and how to apply code instrumentation. An older version of the talk can be found here: https://www.youtube.com/watch?v=80wCytGEY1g&t=2639s