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

获取注册的bean #70

Closed
icevb6 opened this issue May 31, 2016 · 4 comments
Closed

获取注册的bean #70

icevb6 opened this issue May 31, 2016 · 4 comments
Labels

Comments

@icevb6
Copy link

icevb6 commented May 31, 2016

获取注册的bean,怎么写?

spring容器可以SpringContextListener.getApplicationContext().getBean(beanName)

@icevb6
Copy link
Author

icevb6 commented May 31, 2016

SampleIoc.getBean(beanName)?

@hellokaton
Copy link
Member

Object obj = Blade.ioc().getBean(String name);
T t = Blade.ioc().getBean(Class<T> type);

@icevb6
Copy link
Author

icevb6 commented May 31, 2016

感谢!

@hellokaton
Copy link
Member

不客气 🙅

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

No branches or pull requests

2 participants