Four solutions for injecting prototype beans into singleton beans in Spring: ObjectProvider, ObjectFactory, @Lookup, and scoped proxies with runnable examples.Spring Bean Scopes: Singleton with Prototypes2018-05-11 in Backend Development tagged Bean / Java / Scopes / SOLID / Spring Framework / Spring Boot / Testing by Marc Nuri