2. ABOUT THE SPEAKER
Java developer since the beginning
True believer in open source
Groovy committer since 2007
Project lead of the Griffon framework
Currently working for
3. PROJECT LOMBOK
Where, Who, How?
■ http://projectlombok.org/
■ Reinier Zwitserloot
@surial
■ Roel Spilker
@rspilker
Why?
■ Get rid of boiler plate code
■ Compiler does the heavy
lifting
■ Developers just have to
write the essentials
■ Relies on JDK6’s
Annotation Processor
■ Modifies Bytecode at
compile time
3
6. LOMBOK-PG
Where, Who, How
■ https://github.com/peichho
rn/lombok-pg/
■ Philipp Eichhorn
■ peichhorn @ github
■ Delivers its own common
AST API
Why?
■ Extends Lombok with
additional annotations such
as:
■ @Singleton
■ @FluentSetter
■ @Builder
■ and more!
■ Easier to write cross
compiler AST
6
7. GROOVY AST TRANSFORMATIONS
Why?
■ https://groovy.codehaus.org ■ Groovy plays nicely with
Java
■ The Groovy Team
■ Compile time
metaprogramming
executes faster than
■ Compile time
runtime
metaprogramming
■ Changes visible to other
■ Changes registered in the
JVM languages
bytecode
Where, Who, How
7
8. HOW DOES IT LOOK?
The @Immutable AST transformation makes writing
immutable classes trivial