Access Keys:
Skip to content (Access Key - 0)

Project Lombok

Abstract

In this presentation, the developers of lombok, Reinier Zwitserloot and Roel Spilker, will show the audience what lombok is about, and how you can use it to eliminate boilerplate from your java code. For example, instead of writing out common boilerplate such as getters, setters, toString, equals, and hashCode implementations, you can use lombok's @Data annotation. Lombok hooks into your compiler and IDE so that their interpretation of your source includes these methods, while you never actually see any of them in your editor. For IDEs, this means that you get all the benefits, such as auto-completion, the methods show up in your outline views, and search tools such as 'go to declaration'continue to work. While most IDEs offer a feature to generate the boilerplate, this is little help when reading the resulting code, and such code is much harder to maintain.

During this presentation, all current lombok transformations will be showcased, including not just the aforementioned @Data annotation, but also lombok's Automatic Resource Management mechanism.

As the authors, we'll also discuss where we are heading with project lombok, including glimpses into the kinds of code you can write in the future.

Depending on how many transformations lombok will support by November, and the number of future features suitable for inclusion in the talk, we'll take the audience through the process of building your own lombok extension, by writing on-stage the "@Main" transformation to generate the 'public static void main' method that creates a new instance and then calls the annotated instance method, explaining what we're doing as we go along.

Speakers

View talk on Parleys.com

View interview on Parleys.com


Adaptavist Theme Builder (4.0.2) Atlassian Confluence 3.2, the Enterprise Wiki: Intranet software for documentation and knowledge management