-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auto register issue #23
Comments
leobert-lan
added a commit
that referenced
this issue
May 10, 2018
以app为宿主时,他的isRegisterCompoAuto 如果是TRUE,所有的被集成的Module都会走自动注册,如果是FALSE,所有的都要手动注册。。。leobert的建议 |
设置isRegisterCompoAuto = true 却没有自动注册,这是咋回事? |
@KingMing2017 检查一下没有被自动注册的组件,其中IApplicationLike的实现类,是否被RegisterCompManual注解,如果是,该组件只能被手动注册。 |
Thanks @leobert-lan ,没有加@RegisterCompManual,不知道哪里出问题了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
之前一些朋友提过疑问:为什么readerComponent已经标明isRegisterCompoAuto = false但是被集成到宿主中时,其APPLike还是被初始化了。
当时这些朋友被我误导了。原有设计中,isRegisterCompoAuto代表的是,以该Module作为宿主编译时,寄生的Module是否被自动集成(注意,是全部)
long long ago的时候在群里面讨论过这个设计,我是期望设计成寄生Module被集成时是否被自动集成(没记错当时是插件1.1.0版本)所以一直有这样一个映像在脑海中。
进过一些思考,这两种设计都有利弊,所以我在原有的设计上进行了一定的增强:
*添加一个注解标识某些Module规避自动集成。
原来的issue并没有找到,新提一个。
The text was updated successfully, but these errors were encountered: