Saturday, December 24, 2011

Spring IOC


Spring IOC is a Architectural pattern describing an external entity (i.e Container) used to wire the object at creation time by Injecting there dependencies.
Below two packages are provides Basis for Spring Framework IOC Container.
Ø org.springframework.bean
Ø org.springframework.context

Dependency Injection is a process of injecting the dependencies into an Object. Because we generally divide huge applications into some object and this object represents some functionality.
BeanFactory interface manages the objects at any Nature.
ApplicationContext is built on the top of the BeanFactory it adds the other functionality such as easy integration of Spring AOP feature.
In spring Object are  the backbone of our application that managed by spring IOC* container are referred to as Beans . A Bean is simply an Object that managed by Spring IOC Container.

Spring core container:

Spring core container is a basis for complete spring framework. It provides an implementation of IOC supporting Dependency Injection. Spring at present allows us to supply the configurations either as an XML format , properties file format, or programmatically using by Spring Bean API. But we mostly prefer for XML based configurations since they are simple and easy to modify.

INITIALIZING SPRING CORE CONTAINER

It can be instantiated by creating an Object of any one of BeanFactory or ApplicationContext implementation classes supplying Spring Bean configuration.
//using ApplicationContext or Bean to Instantiate Spring core Container. 

No comments:

Post a Comment