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
What are the considerations to be made in case of loops in java ?
Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
What is the enumerator of the java collection framework? : java collections
my interviewer asked me what technical specification you used how to answer that question
What is deque in the java collections framework? : java collections
Should we create system software ( e.g operating system ) in java ?
What are the uses of the set interfaces in the java collections? : java collections
What is java collection? : java collections
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 ?
What are the classes in the java collection framework? : java collections
What are the different types of collections views being provided by the map interface? : java collections
Which java collection class can be used to maintain the entries in the order in which they were last accessed?
What are the main classes of the list interfaces? : java collections
can u draw class/object diagram for ATM
What are the queues in the java collection framework? : java collections