Abstract
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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
There is actually another bean scope available, called thread, but you have to do some setup to use it. It’s not typically registered because scoping a bean to a thread tends to create memory leaks unless the programmer is very careful.
- 2.
We could have read the configuration manually and looked for the scope attribute directly; there are also ways to look at the application context and figure out the scope from its internal data structures. This was simpler and avoided the distraction of walking through extra code.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature
About this chapter
Cite this chapter
Gutierrez, F., Ottinger, J.B. (2022). Using Bean Scopes. In: Introducing Spring Framework 6. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-8637-1_4
Download citation
DOI: https://doi.org/10.1007/978-1-4842-8637-1_4
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-8636-4
Online ISBN: 978-1-4842-8637-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)