Support listener interception
まだ誰も着手していません。
評価
調査の方向性
まず EventBus の登録パスとリスナー呼び出しパスを確認し、参照されている SpongeEventBus の実装およびその呼び出しラッパーと比較します。インターセプターサービスの境界を定義し、Sponge が reflection を使用して EventBus を置き換えることなく、リスナーの登録または呼び出しをインターセプトできることを検証します。
索引モデルが issue の本文から書いたものです。
説明
For Sponge we would like to be able to intercept either the listener registration or the invocation of it. For EB6 we are using reflection to replace the EventBus with our own implementation just to wrap the individual listener invocation with our own phase tracker system, this is not ideal.
To support our needs I'm proposing to add a service that can be implemented to provide an interceptor for this scenario. We are fine with either being able to wrap the listener function itself or the invocation of it.
The benefit of being able to wrap the registration itself is that we might be able to extract more information upfront about which mod registered the listener that we can then bake in to the wrapper function itself. This is a bit of moot point as EB doesn't require to provide any context objects like the ModInfo that we can easily rely on.
// Rough example of invocation interception.
public interface EventBusInterceptorProvider {
Consumer<Runnable> createInvocationInterceptor(BusGroup group, EventBus<?> bus);
}
- 主要言語
- Java
- スター
- 46
- フォーク
- 39
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MinecraftForge/EventBus のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
MinecraftForge/EventBus#80 · コメント 2 件 ·
MinecraftForge/EventBus の issue をすべて見る
似ている issue
-
CalendarEventAttendance/get returns eventAttendanceStatus while the doc says attendanceStatus対応中かも @chibenwa が今日担当しました。 オープンbug claude
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
linagora/tmail-backend#2697 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
apache/skywalking#14120 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] Case-insensitive search suggestions miss items when the JVM default locale is Turkish対応中かも @thswlsqls が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
HMCL-dev/HMCL#6943 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
NameAllocator generates colliding identifiers with ignorable characters対応中かも @PHJ2000 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信