Bean Lifecycle
The sequence through which a container instantiates, injects, initializes, proxies, exposes, and eventually destroys a managed component.
Technical Context
Lifecycle ordering matters when constructors, post-processors, proxy creation, @PostConstruct, destruction callbacks, and external resources interact. Initialization side effects should be deterministic and avoid hidden network or database work unless the startup contract explicitly requires it.
Related Concepts
- Bean Scope
- Dependency Injection
- proxy
- resource lifecycle