Skip to content
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

FactoryBean有个功能没实现 #73

Open
tian-you opened this issue May 5, 2024 · 5 comments
Open

FactoryBean有个功能没实现 #73

tian-you opened this issue May 5, 2024 · 5 comments

Comments

@tian-you
Copy link

tian-you commented May 5, 2024

当我想获得org.springframework.test.ioc.common.CarFactoryBean的实例时不行,只能获得他getObject()创建的复杂对象,原始spring的做法是applicationContext.getBean("&car", Car.class);加了一个&符号取得。

@DerekYRC
Copy link
Owner

DerekYRC commented May 6, 2024

确实没有实现该功能

@tian-you
Copy link
Author

tian-you commented May 6, 2024

是不是实例工厂和静态工厂也没实现啊,我看源码里没有

@DerekYRC
Copy link
Owner

DerekYRC commented May 6, 2024

毕竟是简化版的Spring,只是抽取了Spring中比较核心的功能,方便大家理解核心原理,学完该项目之后再去阅读原始Spring的源码会轻松很多。

@tian-you
Copy link
Author

tian-you commented May 6, 2024

确实很清晰了,感谢开源,只是学到的时候有疑问,这些可以学习者自己实现,毕竟您已经铺好路了

@DerekYRC
Copy link
Owner

DerekYRC commented May 6, 2024

互相学习,希望能帮到你

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants