vertx-codegen
vertx-codegen copied to clipboard
Handlers are reported as CLASS_API
When using type.kind for Handlers (e.g. io.vertx.ext.web.handler.CookieHandler) the kind is reported to be CLASS_API instead of CLASS_HANDLER.
can you give an example of code that declares this type ?
My assumption is that during codegen the io.vertx.ext.web.handler.CookieHandler should be reported as CLASS_HANDLER, it is reported to be CLASS_API. What kind of example should I provide?
no it should be CLASS_API
however on ApiTypeInfo
you do have the isHandler()
method (accessible with handler
property in templates) and also the getHandlerArg()
method that you can use to achieve this effect.
Argh, you are right. But what sense does CLASS_HANDLER make if all @VertxGen annotated handlers are CLASS_API? Maybe we could clarify that in the docs.
CLASS_HANDLER == really the Handler class CLASS_API == anything annotated with vertxgen
can you make a PR for doc ?
Will do when I get home.