Posts Tagged: Spring

Advantages of Dependency Injection Loosely coupled: Dependency injection gives the opportunities to eliminate hard-coded object creation – which is hard to manage or modify, But in DI if you need to change method signatures or […]

Spring AOP vs AspectJ Comparison: Aspect-Oriented Programming (AOP) is like Object-Oriented Programming (OOP), the key element in OOP is the class, whereas in AOP – key element is the aspect. Aspects enable the modularization of […]

Spring Autowiring Types

Spring Autowiring Types In Spring framework, you can wire beans automatically. To enable it, just define the “autowire” attribute inside tag, also you can define autowire through annotation. <bean id=”userController” autowire=”byType” /> In Spring, 5 […]

Spring Bean Scopes

Spring Bean Scopes – Spring Framework supports exactly five scopes (of which three are available only if you are using a web-aware ApplicationContext). singleton scope is the default scope. singleton Scopes a single bean definition […]

Spring Bean LifeCycle Details flow Diagram Spring Bean LifeCycle Details flow – 1) At First, spring creates an instance of the Bean using Java Reflection API. 2) If there are any properties associated with bean […]

Dependency Injection (DI) and Inversion of control (IoC) What is Dependency Injection? Dependency injection is a software design pattern that implements inversion of control principle and allows a program to decouple dependency from hard coded […]

Core Container: The Core Container consists of the Core, Beans, Context, and Expression Language modules. Core and Beans modules provide the basic feature of spring like IoC and Dependency Injection. BeanFactory which is the core […]

Following is the list of few of the great benefits of using Spring Framework: Spring is Lightweight container No App Server Dependent – like EJB JNDI Calls Objects are created Lazily , Singleton – configuration […]

Scroll To Top