So far, we’ve seen the basic requirements of a My Documents application, and we’ve explored some aspects of configuration of a simple implementation of a search engine that can return either all documents or documents of a specific type.
In all cases, we’ve returned what is effectively a singleton of every implementation, meaning that Spring constructs one instance of each component.
In this chapter, we’re going to spend some time with bean scopes, which ...