Spring Lookup-Method: Deep Dive into Source Code Execution Flow
public class RedApple extends Produce {
private YellowBanana banana;
public RedApple() {
System.out.println("Fresh red apple acquired");
}
public YellowBanana getBanana() {
return banana;
}
public void setBanana(YellowBanana banana) {
this.banana = banana;
}
}
public class Yellow ...
Posted on Mon, 22 Jun 2026 16:50:06 +0000 by coffejor
Understanding Bean Scopes and Lifecycle in Spring Framework
Bean Scopes in Spring
When the Spring IoC container starts, it reads bean definitions from configuration files (e.g., XML) and converts each <bean> element into a BeanDefinition object. The scope attribute within BeanDefinition determines the bean's scope. Spring provides five built-in scopes, three of which are only available in a web-aw ...
Posted on Fri, 22 May 2026 18:47:37 +0000 by richrock
Key Spring Framework Concepts for Technical Interviews
Core Concepts: IoC and AOP
Spring is a robust Java platform designed to simplify the development of enterprise applications. Its primary advantages include:
Component Management: The framework handles the lifecycle and wiring of objects, removing the need for manual instantiation.
Proxy-based Logic: Utilizing dynamic proxies, Spring allows for ...
Posted on Tue, 19 May 2026 16:29:25 +0000 by aubeasty
Internal Mechanics of Spring Bean Instantiation and Constructor Resolution
Bean Instantiation WorkflowWithin the Spring Framework, the AbstractAutowireCapableBeanFactory class orchestrates the creation of bean instances. The core method responsible for this operation evaluates the RootBeanDefinition to determine the appropriate instantiation strategy. The execution flow follows a specific sequence of checks to identif ...
Posted on Sat, 09 May 2026 06:38:38 +0000 by Charles256