Hi,
I have a question:
in DefaultListableBeanFactory the method call getBeansOfType(MyClass.class, false, true) will initialize lazy singleton beans, but the call getBeansOfType(class, true, true) not.
Is this a correct behaviour?
Regards, Sergej
Comment From: pivotal-issuemaster
@sewolf Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
Comment From: pivotal-cla
@sewolf Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
Comment From: snicoll
@sewolf sorry it took so long to get back to you but a question disguised in a PR is a bit unusual. What you've described is not the correct behavior (the second call should also initialize lazy-init singletons). I can't know for sure as your test reuses the same bean factory instance. If you're experiencing an issue, we'd rather get a description of it with a small sample that reproduces the problem.