Annotation not working
Annotation processing by default is disabled in eclipse. in order to enable it you need to open project properties and then 1. Java Compiler -> Annotation processing: enable annotation processing 2. Java Compiler -> Annotation processing -> factory path: add jar with factories
if you need some more information take a look at: getting started with AP in eclipse
Edited:
take a look at this tutorial. It explains in details how to set up eclipse to use custom annotation processors.
Important: when printing errors use this method: javax.annotation.processing.Messager.printMessage(Kind, CharSequence, Element)
instead of:
javax.annotation.processing.Messager.printMessage(Kind, CharSequence).
messages from the first one are visible in Problems view and most source-related views while messages from the second one are visible only in ErrorLog view.