#applicationcontext
Posts
-
Digging into Spring's Source 7: The Twelve Steps of refresh() — the Order in Which the Container Starts
Behind the single line new AnnotationConfigApplicationContext(...) runs refresh(). This post opens its twelve steps one by one, and checks in the real source and with runnable examples what ApplicationContext adds on top of BeanFactory, why there are two branches (GenericApplicationContext and AbstractRefreshableApplicationContext), and what happens when startup fails or when close() is called.