A Generic Class for Extensions
まだ誰も着手していません。
評価
調査の方向性
まず、リンクされた gist を確認し、提案されている基底クラス、登録キー、型付き wither、equality と hashCode の動作を、既存の Java CloudEvents SDK の拡張メソッドと比較します。提案が SDK の関連する拡張ユースケースを網羅しているか確認します。実装前に、明確に範囲を定めた設計とメンテナーの合意が得られていれば完了とします。
索引モデルが issue の本文から書いたものです。
説明
[info/enhancement proposal] Here's a quick idea to avoid repetitively writing extensions.
The limitations of this concept, to be safe from many perspectives, are that the supported types are basic, and therefore complex elements must be handled outside of the extension itself.
However, there are several advantages, including having ordered keys, working with inheritance, simplifying extension development, and the ability to type both getters and withers. So at the end, we have a patternization of extension creation.
The following link contains the code to implement this concept: https://gist.github.com/stefanofago73/dd03952e9a2c5f2f113ea064320785d0
Could this be helpful? Could it work, or is it not useful due to other use cases or parts of the library?
The basic design is to have a base class and create Extensions by inheritance. The constructor allows you to register keys, while the extension itself allows you to create typed withers. The Java CloudEvents SDK methods are implemented in the base class, including the hashCode and equality methods. The example code is commented and includes an example of an extension (auth context extension).
- 主要言語
- Java
- スター
- 446
- フォーク
- 172
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cloudevents/sdk-java のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
cloudevents/sdk-java#731 · リアクション 1 件 ·
-
bug
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
cloudevents/sdk-java#697 · コメント 3 件 ·
-
Spring CloudEventMessageConverter produce a null pointer exception if initial message header map is null対応中かも @prashantdotnaagar が 77 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
cloudevents/sdk-java#689 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
cloudevents/sdk-java#660 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
cloudevents/sdk-java#748 ·
cloudevents/sdk-java の issue をすべて見る
似ている issue
-
test(setup): GitHub configuration tests fail when the temp path is long enough for YAML foldingオープンbug good first issue help wanted priority medium size S
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
martin-francois/symphony-trello#776 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Console.printHexオープンgood first issue kernel
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
JackFurton/who-would-build-a-kernel-in-java#33 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
objectionary/eo#9182 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
objectionary/hone-maven-plugin#1293 ·
メンテナーはふだん 1 日以内に返信
-
1.severity: security
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
NixOS/nixpkgs#569828 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信