Tag

BeanFactory

1 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 25, 2024 · Backend Development

Understanding Spring's IoC Container: BeanFactory, ListableBeanFactory, HierarchicalBeanFactory, and AutowireCapableBeanFactory

This article explains the core Spring IoC concepts by analyzing the top‑level BeanFactory interface and its three important sub‑interfaces—HierarchicalBeanFactory, ListableBeanFactory, and AutowireCapableBeanFactory—illustrating their responsibilities, inheritance relationships, and practical usage with code examples.

BeanFactoryDependency InjectionIoC
0 likes · 8 min read
Understanding Spring's IoC Container: BeanFactory, ListableBeanFactory, HierarchicalBeanFactory, and AutowireCapableBeanFactory
Architect
Architect
Apr 28, 2024 · Backend Development

Understanding Spring's Circular Dependency Resolution with a Three‑Level Cache

This article explains how Spring solves circular dependencies by using a three‑level cache system, walks through the underlying source‑code execution flow, clarifies the purpose of each cache level, and discusses why the design is essential for AOP‑enabled beans.

BeanFactoryCircular DependencyJava
0 likes · 12 min read
Understanding Spring's Circular Dependency Resolution with a Three‑Level Cache
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 14, 2023 · Backend Development

How Spring Resolves Bean Dependencies: Types, Collections, and @Lazy Proxies

Spring determines the type of an injected property, resolves collection or single-bean dependencies, and then locates matching bean instances, handling Optional, ObjectFactory, ObjectProvider, and JSR‑330 providers, while supporting @Lazy proxies and various collection descriptors.

BeanFactoryDependency InjectionJava
0 likes · 9 min read
How Spring Resolves Bean Dependencies: Types, Collections, and @Lazy Proxies
Sanyou's Java Diary
Sanyou's Java Diary
Sep 11, 2023 · Backend Development

Unveiling Spring’s 12 Core Startup Steps: A Deep Dive

This article walks through the twelve essential steps Spring performs during application startup, explaining each method—from prepareRefresh to finishRefresh—including bean factory preparation, post‑processor registration, and the final context refresh, all illustrated with diagrams and code snippets.

ApplicationContextBeanFactoryJava
0 likes · 16 min read
Unveiling Spring’s 12 Core Startup Steps: A Deep Dive
Selected Java Interview Questions
Selected Java Interview Questions
Apr 13, 2023 · Backend Development

Analysis of Spring Bean Instantiation Strategies in AbstractAutowireCapableBeanFactory

This article dissects the core bean creation logic of Spring's AbstractAutowireCapableBeanFactory, detailing how createBeanInstance delegates to obtainFromSupplier, instantiateUsingFactoryMethod, autowireConstructor, and fallback default constructors, while explaining the role of Supplier, ConstructorResolver, argument resolution, and caching mechanisms.

BeanFactoryConstructor InjectionDependency Injection
0 likes · 34 min read
Analysis of Spring Bean Instantiation Strategies in AbstractAutowireCapableBeanFactory
Top Architect
Top Architect
May 12, 2022 · Backend Development

Understanding Spring BeanFactory Caching and Circular Dependency Resolution

This article explains how Spring's BeanFactory creates and caches beans, details the three‑level cache mechanism (singleton, early‑singleton, and singleton‑factory) used to resolve circular dependencies, and walks through the relevant source code and lifecycle methods.

BackendBeanFactoryCaching
0 likes · 19 min read
Understanding Spring BeanFactory Caching and Circular Dependency Resolution
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 18, 2022 · Backend Development

How Spring Solves Circular Dependencies with a Three‑Level Cache

This article explains how Spring's three‑level cache (singleton, early‑singleton, and singleton‑factory caches) works together with bean post‑processors to break circular dependencies and correctly create AOP proxies, while also showing how to disable circular references when needed.

BackendBeanFactoryCircular Dependency
0 likes · 12 min read
How Spring Solves Circular Dependencies with a Three‑Level Cache
macrozheng
macrozheng
Mar 16, 2022 · Backend Development

Build a Mini Spring IoC Container in 5 Minutes: Hands‑On Tutorial

This article walks through the fundamentals of Spring’s IoC container by manually implementing a lightweight version, covering concepts such as IOC, DI, bean definitions, resource loading, bean registration, and a simple BeanFactory with example code and a test demonstrating singleton caching.

BeanFactoryDependency InjectionIoC
0 likes · 10 min read
Build a Mini Spring IoC Container in 5 Minutes: Hands‑On Tutorial
转转QA
转转QA
Mar 10, 2022 · Backend Development

Automated Post‑Deployment Interface Testing Using TestNG, Spring and MQ Integration

The article describes a solution that automatically triggers interface test cases after a service deployment by listening to deployment‑success MQ messages, dynamically invoking TestNG with service‑specific IPs, and integrating Spring bean registration to simplify test code while handling dynamic nodes, reporting, and common pitfalls.

BeanFactoryJavaMQ
0 likes · 11 min read
Automated Post‑Deployment Interface Testing Using TestNG, Spring and MQ Integration
Selected Java Interview Questions
Selected Java Interview Questions
Nov 20, 2021 · Backend Development

Design Pattern Summary in the Spring Framework

This article provides a comprehensive overview of the design patterns used in Spring, including Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method, with explanations of their implementation, principles, and practical code examples.

BeanFactoryDesign PatternsFactory Method
0 likes · 13 min read
Design Pattern Summary in the Spring Framework
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 21, 2021 · Backend Development

When to Choose BeanFactory vs ApplicationContext in Spring 5?

This article explains the core differences between Spring's BeanFactory and ApplicationContext, why ApplicationContext is generally preferred, and how to manually register BeanPostProcessors when using a plain DefaultListableBeanFactory.

ApplicationContextBeanFactoryDependency Injection
0 likes · 6 min read
When to Choose BeanFactory vs ApplicationContext in Spring 5?
Java Captain
Java Captain
Feb 20, 2021 · Backend Development

Spring Framework Design Patterns: Summary and Implementation Details

This article provides a comprehensive overview of the design patterns used in the Spring framework—including Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method—explaining their implementation, underlying principles, and practical significance with code examples.

AdapterBeanFactoryDesign Patterns
0 likes · 15 min read
Spring Framework Design Patterns: Summary and Implementation Details
Top Architect
Top Architect
Oct 5, 2020 · Backend Development

Deep Dive into Spring Framework Container Startup: Constructor, BeanFactory, Reader, and Scanner Initialization

This article walks through the Spring Framework container startup process, explaining how the AnnotationConfigApplicationContext constructor prepares the environment, registers readers and scanners, initializes the BeanFactory, sets up condition evaluators and post‑processors, and outlines the default filters used for component scanning.

AnnotationConfigApplicationContextBackendBeanFactory
0 likes · 15 min read
Deep Dive into Spring Framework Container Startup: Constructor, BeanFactory, Reader, and Scanner Initialization
Java Captain
Java Captain
Mar 1, 2020 · Backend Development

Summary of Design Patterns Used in the Spring Framework

This article explains how the Spring framework implements various classic design patterns—including Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method—detailing their implementation mechanisms, underlying principles, and practical significance within Spring's bean lifecycle and extension points.

BeanFactoryDependency InjectionDesign Patterns
0 likes · 14 min read
Summary of Design Patterns Used in the Spring Framework
Selected Java Interview Questions
Selected Java Interview Questions
Feb 24, 2020 · Backend Development

Understanding BeanFactory, ApplicationContext, and FactoryBean in Spring

This article explains the roles of BeanFactory and ApplicationContext in Spring, compares BeanFactory with FactoryBean, and provides detailed code examples showing how to configure and retrieve beans, including custom FactoryBean implementations and the use of '&' to access the FactoryBean itself.

BackendBeanFactoryDependency Injection
0 likes · 16 min read
Understanding BeanFactory, ApplicationContext, and FactoryBean in Spring
Java Captain
Java Captain
Apr 10, 2018 · Backend Development

Deep Dive into Spring Framework: IOC Container, BeanFactory, Bean Loading, and FactoryBean

This article provides an in‑depth exploration of Spring's core concepts—including the IOC container, ApplicationContext vs BeanFactory, bean instantiation lifecycles, and the role of FactoryBean—supplemented with diagrams and source code excerpts to help Java developers understand the framework's inner workings.

BackendBeanFactoryDependency Injection
0 likes · 16 min read
Deep Dive into Spring Framework: IOC Container, BeanFactory, Bean Loading, and FactoryBean