Spring Bean Life Cycle


Shutdown

Container Shutdown -> Disponable Bean's destroy() -> Call custom destroy method -> Terminated


Callback Interfaces

Life Cycle Annotations


Bean Post Processors

Note: The guru admits in all his years he has never used these


'Aware' Interfaces

Spring Bean Scopes

*Only valid in the contex of a web-aware Spring ApplicationContext

No declaration is needed for singleton scope.

In Java configuration use the @Scope annotation. We see the xml configuaration above.


Revision #1
Created 17 April 2022 00:37:02 by Elkip
Updated 17 April 2022 00:39:13 by Elkip