Bean Scope
The lifecycle and visibility policy that determines how a dependency-injection container creates and reuses component instances.
Technical Context
In Spring, singleton and prototype have very different ownership semantics, while web scopes bind instances to request or session boundaries. Scope affects thread safety, retained state, proxying, cleanup, and whether mutable fields accidentally become shared across requests.
Related Concepts
- Dependency Injection
- Bean Lifecycle
- singleton scope
- request scope