-
Notifications
You must be signed in to change notification settings - Fork 946
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
如果一个Bean实现了IocLoader接口,那自动加入Ioc的加载器列表 #829
Comments
你已经实现了? |
还没,正准备弄 |
@wendal |
貌似CachedIocLoader 根本没派上用场 当初是想着每次从iocloader取很费时 |
嗯,JsonLoader , XmlLoader 都有缓存,每次就是 new 几个类的消耗 |
如果这个弄了,看来我的那个丑陋的 |
CachedIocLoader 干掉吧,应该没用 |
rm CachedIocLoader in 7b5d5ee |
那就是ok了?, 关了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
换句话说, 先通过Ioc容器生成IocLoader,然后将其加入Loader列表,从而得到更多的IocBean定义(例如从数据库加载)
在 Mvc 环境,支持了
即,你如果给
@IocBy
添加一个init={"loader"}
那么, Mvc 创建完 Ioc 容器,会自动先获取一下名字为 "loader" 的对象,当然,如果它恰好是IocLoader
,就会被自动计入加载列表。当然,你的对象名字不叫 loader 叫 abc 啥的都行,随你高兴。
Issue #863 和这个需求类似,它是动态加载 Mvc 的 Modules 的,通常这两个特性会共同使用
The text was updated successfully, but these errors were encountered: