Spring Dependency Injection Basics

Spring Dependency Injection ● A kind of Inversion of Control (IoC) ● “Hollywood Principle”          – Don’t call me, I’ll call you ● “Container” resolves (injects) dependencies of components by setting implementation object (push) ● As opposed to component instantiating or Service Locator pattern where component locates implementation (pull) ● Martin Fowler calls it Dependency Injection. Benefits of… Read More Spring Dependency Injection Basics

Spring Basics

What is Spring Framework? ● Light-weight yet comprehensive framework for building Java SE and Java EE applications. Key Features – DI ● JavaBeans-based configuration management, applying Inversion-of-Control principles, specifically using the Dependency Injection (DI) technique          – This aims to eliminate manual wiring of components ● A core bean factory, which is usable… Read More Spring Basics