Understanding BeanFactory and ApplicationContext Interfaces and Their Implementations in Spring

1 Interfaces 1-1 Basic Interface Description Spring Boot startup source code package com.village.dog; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ConfigurableApplicationContext; ...

Posted on Fri, 06 Nov 2026 16:13:28 +0000 by KMC1499

Spring Framework Core Components Deep Dive

Understanding Spring's internal architecture begins with its foundational abstractions. This article explores the essential interfaces and classes that form the backbone of Spring’s IoC container, clarifying their responsibilities, relationships, and practical usage patterns — without relying on high-level abstractions like @SpringBootApplicati ...

Posted on Thu, 05 Nov 2026 16:46:11 +0000 by gj6kings

Core Components of Spring Bean Management

The foundation of Spring's bean management system revolves around several key components that work together to define, instantiate, and manage beans. Below is a simplified implemantation illustrating these core concepts. BeanDefinition: Metadata Container for Beans BeanDefinition acts as a metadata holder for a bean, storing information such as ...

Posted on Fri, 09 Oct 2026 16:05:25 +0000 by flashback

Building a Simple XML-based Bean Container in Java

Abstratc Bean Definition Reader The AbstractBeanDefinitionReader acts as a base class for all bean definition readers. It provides common functionality, such as resource loading, and defines a template method that concrete readers must implement to perform the actual parsing of configuration data. It delegates the storage of parsed bean definit ...

Posted on Fri, 25 Sep 2026 16:39:23 +0000 by Dread

Understanding Spring's BeanFactory Container

In the Spring framework, components that form the backbone of your application and are managed by the Spring IoC container are referred to as beans. Essentially, a bean is an object that is instantiated, configured, and managed by the Spring container. Beyond this container management, beans behave just like any other object in your application ...

Posted on Sat, 05 Sep 2026 16:06:53 +0000 by bluemonster

Spring Boot Application Initialization Sequence: From Environment Assembly to Context Preparation

Application Initializer and Listener Sorting The framework begins by ordering implementations of ApplicationContextInitializer and ApplicationListener according to their priority or defined order. This ensures predictable behavior when several extensions modify the context. Assembling Run Listeners A SpringApplicationRunListener instance is cre ...

Posted on Sat, 11 Jul 2026 17:08:31 +0000 by Pobega

Understanding Spring IOC Container Initialization Flow

What is IOC IOC stands for Inversion of Control. Instead of manually instantiating objects using new, the responsibility for object creation is delegated to the Spring framework. This approach significantly reduces application complexity and minimizes coupling between system components. Application Entry Point public static void main(String[] a ...

Posted on Mon, 22 Jun 2026 18:44:45 +0000 by pppppp

Understanding the Differences Between BeanFactory and ApplicationContext

Key Distinctions Between BeanFactory and ApplicationContext Interface Hierarchy and Overview Both BeanFactory and ApplicationContext serve as core interfaces with in the Spring framework, functioning as containers for managing beans. Notably, ApplicationContext extends BeanFactory, inheriting its foundational capabilities while adding enhanced ...

Posted on Mon, 22 Jun 2026 16:59:22 +0000 by runestation