Identify component factories by identifier string
@kevinwallimann がすでに取り組んでいます。
2020年2月19日 から。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 28/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- scala
調査の方向性
まず ComponentFactory と ClassLoaderUtils、および #83 で参照されている SPI の作業を読んでください。作業内容は、クラス名をデフォルト値とする getIdentifier を追加し、その後、factory の検索を変更して、ServiceLoader が提供する factory を identifier で見つけられるようにすることです。既存のクラス名ベースの設定が引き続き動作し、設定で代わりに安定した identifier を使用できるようになれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
Currently, component factories are loaded in ClassLoaderUtils given their fully qualified classnames. The classname is passed by the configuration. (e.g. component.writer)
That means that components don't have the possibility to be refactored (renaming, moving to a different package) without introducing a breaking change which would require updating any existing configuration that uses that component.
Tasks
- Add a method
getIdentifier: Stringto the interfaceComponentFactory.getClass.getNamemay be used as a default value. (so this feature won't be a breaking change) - Implementing components are responsible for providing a unique identifier. It's advisable to prefix the identifier with a human readable name, because it will be referenced in the configuration, logged, etc..
- Use
getIdentifierto load the factory inClassLoaderUtils. Currently, it loads the class directly given the class name. This approach doesn't work to efficiently load the factory by the identifier. With #83, component factories can be loaded using the Service Provider Interface (SPI), i.e. withServiceLoader. All factories expose thegetIdentifiermethod, that's how it can be found
Other
- The same identifier might be used by each component to prefix its configuration properties to avoid name clashes.
- 主要言語
- Scala
- スター
- 47
- フォーク
- 14
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AbsaOSS/hyperdrive のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
AbsaOSS/hyperdrive#269 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
AbsaOSS/hyperdrive#240 ·
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
AbsaOSS/hyperdrive#239 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
AbsaOSS/hyperdrive#230 ·
-
Atum integration再び着手できるかも @kevinwallimann が 2011 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
AbsaOSS/hyperdrive#211 · コメント 1 件 · リアクション 1 件 · 担当者 1 名 ·
AbsaOSS/hyperdrive の issue をすべて見る
似ている issue
-
bug documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 1 日以内に返信
-
bug 🐞 Untriaged user issue
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
valkey-io/valkey-glide#7306 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
lichess-org/lila#21988 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
playframework/playframework#14336 ·
メンテナーはふだん 1 日以内に返信