Create @GrpcClass annotation processor hook for generated source files.
Open
enhancement
- Dominant language
- Java
- Stars
- 12.1k
- Forks
- 4k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 37
Description
To write an annotation processor that further augments the generated source from the grpc protoc plugin is a little difficult.
Currently, I process `@Generated` annotations and search for `value ~= /gRpc/`.
As an external example, looking at the new grpc-dagger in 2.11 (google/dagger#647), the additional dagger code generation is triggered off of an annotation applied to the implementing class. It would be nice to have all the code generation based off of the gprc classes. Right now it feels like a two step process. Add the proto, generate the grpc stub, implement the stub, add the processor annotation, compile again for the additional code.
WDYT?
Contributor guide
Assessment
This issue has not been assessed yet.