Local singletons in Spring

When developing applications using dependency injection containers there are times when having a single global scope is not enough. As an example, consider having multiple instances of some “heavy” component. Creating such components requires dependencies declared as singletons within the scope of a particular object hierarchy (usually rooted in the component itself), and as prototypes … Read more