I would say yes. You may not want to reuse the same bean instance in a scope. You may want to create fresh instances per request. Now, I see your point, why not place the factory globally 🤔 unless you want to limit the scope of the factory itself.
But yeah in practicality makes no much sense
l
LeoColman
01/05/2024, 6:38 PM
Personally, I rarely split to different scopes
a
arnaud.giuliani
01/08/2024, 5:31 PM
you can use factory inside scope for visibility purpose, to avoid expose this factory elsewhere
👍 3
p
Pedro Francisco de Sousa Neto
01/08/2024, 6:33 PM
If I want multiple instances for every get, factory will work.
And outside of scope, that won't work.
Yeah... now make sense.