开发者

Getting Intellij IDEA to process GWT RequestFactory annotations

开发者 https://www.devze.com 2023-04-03 20:51 出处:网络
Having upgraded to GWT 2.4.0, I want (need) to enable annotation processing for my RequestFactory interfaces. The instructions for doing that in Eclipse are clear enough, but I can\'t find the corresp

Having upgraded to GWT 2.4.0, I want (need) to enable annotation processing for my RequestFactory interfaces. The instructions for doing that in Eclipse are clear enough, but I can't find the corresponding instructions for Intellij IDEA.

The fields of the annotation processing settings page in Intellij seem to require a 'Processor FQ Name'开发者_运维百科, whatever that is. What might that be?


It turns out that one does not have to enable the annotation processor. Once I had all of the right JAR files in the classpath (requestfactory-apt and requestfactory-server in this case), and removed an old version of gwt-servlet.jar from the classpath, and invalidated Intellij's caches, and removed previously-compiled versions of my project, and restarted Intellij, and held my mouth in just the right position, the annotation processor ran, even though I had 'Enable annotation processing' unchecked.


I assume "Processor FQ Name" is a fully qualified class name (class name and package) to a class that processes annotations.


There are some instructions for IntelliJ here: https://docs.google.com/document/d/1UASaSSrGFJOmRPC7NCeEqabSGoNmyEs4Ir-4H1y1a6g/edit?hl=en_US

The Processor FQ name should be: com.google.web.bindery.requestfactory.apt.RfValidator

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号