Bean Lifecycle: Prototype Scoped Beans
Learn about the complete lifecycle of prototype scoped beans and how it is managed.
We'll cover the following...
Lifecycle of prototype beans
Spring manages the entire lifecycle of singleton beans but it does not completely manage the lifecycle of prototype beans. This is because there might be a large number of prototype instances and the container can become overwhelmed keeping track of them.
Note: The Spring container creates the prototype beans and hands them over when requested. Thereafter, it ...