RegisterHandlerImpl

class RegisterHandlerImpl(context: PluginContext) : RegisterHandler, KoinComponent

RegisterHandlerインターフェースの実装 外部プラグインがエンドポイントを登録するためのエントリーポイント

Constructors

Link copied to clipboard
constructor(context: PluginContext)

Functions

Link copied to clipboard
open fun getKoin(): Koin
Link copied to clipboard

RegisterHandler に Ktor サポートをインストールする拡張関数 現在は後方互換性のために提供されるが、 将来的にはこの拡張でカスタム設定を適用可能にする

Link copied to clipboard
open override fun register(vararg handlers: Any): RegisterHandler

ハンドラーインスタンスを登録する アノテーションを解析してルートを生成し、レジストリに登録する