This essay developed out of conversations I've had with several other programmers about why Java smelled suspicious. It's not a critique of Java!
Sycorax - complete tutorials
Programming Tutorials
" Java provides the industry - software companies and customer alike , an opportunity to create a true open computing environment where software is portable,
and customers benefit from increase competition. "
Spring Framework Overview
Benefits of Spring Framework
Installing and downloading
Spring Framework
Whats new in spring 2.0?
Introduction to IOC
Setter Injection
Constructor Injection
Spring MVC
Spring and Hibernate
Spring Web Framework
Spring Web Flow
Spring AOP
Register now to recieve special alert and latest technology news!
Introduction to IOC (Inversion Of Control)/ DI (Dependency Injection)
Originally, dependency injection was commonly referred to by another name: inversion of control.
When applying DI, objects are given their dependencies at creation time by some external entity that coordinates each object in the system. In other words, dependencies are injected into objects. So, DI means an inversion of responsibility with regard to how an object obtains references to collaborating objects .
The key benefit of DI is loose coupling. If an object only knows about its
dependencies by their interface (not their implementation or how they were
instantiated) then the dependency can be swapped out with a different implementation
without the depending object knowing the difference.
The org.springframework.beans.factory.BeanFactory is the actual representation of the Spring IoC container that is responsible for containing and managing beans.
The BeanFactory interface is the central IoC container interface in Spring. Its responsibilities include instantiating or sourcing application objects, configuring such objects, and assembling the dependencies between these objects.
The most commonly used BeanFactory implementation is the XmlBeanFactory class. This implementation allows you to express the objects that compose your application, and interdependencies between such objects, in terms of XML. The XmlBeanFactory takes this XML configuration metadata and uses it to create a fully configured system or application.
In Spring frameowork, Dependency Injection (DI) design pattern is used to define the object dependencies between each other. It exits in two types :
- Setter Injection
- Constructor Injection
