Intermediate API for plugins & hiding implementation detail behind a stable facade

オープン
#675 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java

調査の方向性

既存のプラグインモジュールと core との相互作用をマッピングすることから始めます。この issue では、特定のファイル、テスト、エントリポイントは指定されていません。現在プラグインが Recaf のロジックにどのようにアクセスしているかを確認し、提案されている JSR-330 または CDI のアプローチを評価します。安定した中間ファサードによってプラグインのアクションをすぐに開始でき、同時に core の実装詳細が隠蔽されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement

Create an intermediary plugin API to allow "quickstarting" plugins. Currently the plugin module is just a plugin system, with no direct relations to Recaf's logic. If a user wanted to be able to do something like "Insert X into context menu for Classes" there should be an API of sorts to allow such things to handled internally. The user would create their MenuItem instance and pass it off to the API and the rest gets handled by us.

This will also drastically reduce the amount of developer error when making plugins our of incorrect assumptions about the internal work. Plus we can create the API as the "preferred" means of interacting with Recaf and then be free to make wild breaking changes to core so long as the API stays in-tact.

This may require a LOT of internal restructuring to implement properly, probably involving Dependency injection (JSR-330) or a more in-depth CDI setup.

主要言語
Java
スター
7.5k
フォーク
549
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Col-E/Recaf のほかの issue

Col-E/Recaf の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。