Devoxx Poland 2016 - DuyHai DOAN - Annotation Processor, the power of byte code manipulation...

preview_player
Показать описание
Most Java programmers know that byte code manipulation enable advanced features of Java like source code generation, automatic accessors creation, transparent proxies etc ...

The power of byte code comes with its drawback e.g. the inherent complexity of the byte code language itself.

But few people think about Annotation Processing that allows arbitrary code generation at compile time and enables a complete type safe code.

We'll demonstrate this feature with a simple sample using JavaPoet and Google Compile Testing libraries
Рекомендации по теме