While Java's strict type system is a great help for avoiding programming errors, it makes it difficult for framework developers to access and extend their users’ unknown type hierarchies. At the same time, the framework users often do not want the framework types to intrude their application code, a concept known as working with POJOs, plain old Java objects. To overcome this, many of today’s frameworks make use of code generation. This way, a framework can create new Java classes at runtime when the user types first become visible to the framework. This session gives an overview of runtime code generation on the Java platform and introduces Byte Buddy, a novel library which comes with an easy DSL for creating compiled Java classes.
Sign in to add slides, notes or videos to this session