拟定新的“组件注册”机制 #224
ForteScarlet
announced in
不要在这里发帖子了
Replies: 1 comment
-
在 coreListenerManager {
install(TencentGuildComponent)
install(FooComponent)
installAll() // 实验性
}
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
目前的组件通过
Java SPI
由Components
加载时注册。对于基础的核心模块原本的打算是完全的避免反射等内容的使用以方便未来的4.0过渡,但是仍然有部分内容违背这个原则,组件注册机制就是其中之一。考虑未来使用类似于下面的api来代替目前的组件自动加载,并在启动器相关模块(类似于当前的boot相关模块)中提供自动加载机制。
最终的拟定结果可能会在3.0后期或者未来4.0实施。
Beta Was this translation helpful? Give feedback.
All reactions