Quote

We are what we repeatedly do. Excellence, therefore,is not an act but a habit.

Aristotle

Wednesday, January 6, 2010

IoC (Inversion Of Control) Container

Bean: It is nothing but an object that is instantiated, assembled and managed by a Spring IoC container.
The BeanFactory interface is the central IoC container interface in spring. Its responsibilities include instantiating, sourcing, configuring and assembling the dependencies between the objects. Spring configuration consists of atleast one bean that manages the container and this bean is configured as element inside a toplevel


__________________________________________________________________________________________



<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.springframework.org/schema/beans

http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

<bean id="..." class="...">

<!-- collaborators and configuration for this bean go here -->

</bean>

<bean id="..." class="...">

<!-- collaborators and configuration for this bean go here -->

</bean>

<!-- more bean definitions go here -->

</beans>



____________________________________________________________________________________________



















No comments:

Post a Comment