Create @GrpcClass annotation processor hook for generated source files.
- 主要言語
- Java
- スター
- 12.1k
- フォーク
- 4k
- 平均マージ
- 2日 17時間
- マージ済み PR(30日)
- 37
説明
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?
コントリビューションガイド
調査の方向性
このIssueではファイル、テスト、エントリーポイントが指定されていないため、まず grpc protoc プラグインが生成された Java ソースをどのように出力しているか、またアノテーションプロセッサが現在 @Generated をどのように検出しているかを追跡します。実装前に、必要な @GrpcClass トリガーと生成ソース処理への影響を定義し、その後、proto からプロセッサまでの完全なワークフローを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- grpc, java
- 領域
- backend-api-design, build-system
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100