Spring Singleton Bean Lifecycle

Spring Singleton Bean Lifecycle A lifecycle diagram generated by Archify. 01 / Creation 02 / Circular reference + Failure 03 / Shutdown Defined · BeanDefinition · Creation 01 Defined BeanDefinition Instantiated · constructor · Creation 02 Instantiated constructor Populated · deps, Aware · Creation 03 Populated deps, Aware Initialised · @PostConstruct · Creation 04 Initialised @PostConstruct In use · maybe proxied · Creation 05 In use maybe proxied Early reference · setter cycles only · Circular reference Early reference setter cycles only Creation failed · context aborts · Failure Creation failed context aborts Destroying · @PreDestroy · Shutdown Destroying @PreDestroy Destroyed · context closed · Shutdown Destroyed context closed cycle Legend start active state waiting terminal success failure / exit neutral

Prefer constructors

  • • Constructor injection makes cycles fail fast

Callbacks

  • • @PostConstruct to start, @PreDestroy to release
© 2026 Samir Kumar Sahoo. All rights reserved.