Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is IOC in spring?

Answer Posted / shoban

Ioc is the core container for complete spring framework.
Ioc is designed to just perform "dependency injection".
Spring core module comes with basic spring container whose
name will be "BeanFactory"
Ioc can be designed based on Servicelocator designpattern.
Spring basically supports 2 kinds of injection
1.setter injection
2.constructor injection.
Based on the injection you choose and write proper java code
in bean class.
Dependency injection uses the hollywood principal "Don't
call me i will call u".

The steps to use Spring IOC are:

1. Write Java Bean classes, with getter and setter methods
for each property to be configured by Spring.
2. Create an XML file that describes the Java Beans to be
configured.
3. Use an XMLBeanFactory to create configured beans. There
are other ways to read bean descriptions, but using an
XmlBeanFactory is more common.

Is This Answer Correct ?    17 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the considerations to be made in case of loops in java ?

983


Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?

2981


What is the enumerator of the java collection framework? : java collections

980


my interviewer asked me what technical specification you used how to answer that question

2321


What is deque in the java collections framework? : java collections

1014


Should we create system software ( e.g operating system ) in java ?

983


What are the uses of the set interfaces in the java collections? : java collections

924


What is java collection? : java collections

1052


In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?

2099


What are the classes in the java collection framework? : java collections

985


What are the different types of collections views being provided by the map interface? : java collections

974


Which java collection class can be used to maintain the entries in the order in which they were last accessed?

994


What are the main classes of the list interfaces? : java collections

977


can u draw class/object diagram for ATM

6005


What are the queues in the java collection framework? : java collections

967