Questions on Spring

Questions on Spring

View Answers

November 13, 2008 at 1:06 AM

Hi friend,


The Spring Framework provides solutions to many technical challenges faced by Java developers and organizations wanting to create applications based on the Java platform. Because of the size and complexity of the functionality offered, it can be hard to distinguish the major building blocks from which the framework is composed. The Spring Framework is not exclusively linked to the Java Enterprise platform, although its far-reaching integration in this area is an important reason for its popularity.


With inversion of control , instead of executing application code at startup, a library called a framework is called. The framework then invokes the application code. The goal of inversion of control is to create a separation between the code itself and how the various pieces of code are connected together. It makes code much more readable.

There are two types of inversion of control: dependency injection and dependency lookup. In both cases, the framework instantiates the applications? objects. In the case of dependency injection, the framework knows how the dependencies of the objects are to be set. In the case of dependency lookup, the framework will ask the objects itself how their dependencies are to be set.

------------------------

Spring reads the dependencies from an xml file, usually called applicationContext.xml, that (appart from the formatting which I can?t get right) looks as follows:


<bean id="frontend" class="com.soccer.frontend.FrontendImpl">
<property name="matchService" ref="matchService"/>
<property name="clubService" ref="clubService"/>
</bean>

<bean id="matchService" class="com.soccer.service.MatchServiceImpl">
<property name="matchDao" ref="matchDao"/>
</bean>

<bean id="clubService" class="com.soccer.service.clubServiceImpl">
< property name="clubDao" ref="clubDao"/>
</bean>

<bean id="matchDao" class="com.soccer.data.dao.matchDaoImpl">
< property name="database" ref="database"/>
</bean>

<bean id="clubDao" class="com.soccer.data.dao.clubDaoImpl">
< property name="database" ref="database"/>
</bean>

<bean id="database" class="com.soccer.data.database.DatabaseImpl">
< property name="username" value="user"/>
< property name="password" value="secret"/>
< property name="url" value="jdbc:mysql://localhost:3306/soccer_db"/>;
</bean>

November 13, 2008 at 1:08 AM

Aspect-Oriented Programming(AOP) complements Object-Oriented Programming (OOP) by providing another way of thinking about program structure. In addition to classes, AOP gives you aspects. Aspects enable modularization of concerns such as transaction management that cut across multiple types and objects. (Such concerns are often termed crosscutting concerns.)

One of the key components of Spring is the AOP framework. While the Spring IoC container does not depend on AOP, meaning you don't need to use AOP if you don't want to, AOP complements Spring IoC to provide a very capable middleware solution.



-----------------------------------------------------

Visit for more information.

http://www.roseindia.net/spring/

Thanks.









Related Tutorials/Questions & Answers:
Questions on Spring - Spring
Questions on Spring  1> what is Spring Framework ? why does... in Spring ? 3> what is Spring - Aspect Oriented Programming,Please explain with a working Example for Spring - Aspect oriented Programming Concept.?  
spring questions - Spring
spring questions  what is framework? what are the main objectives of Spring? what IOC ? what it can do
Advertisements
spring question - Java Interview Questions
spring question  what is quartz API in spring
Spring question - Java Interview Questions
Spring question  Hi Pls any one give idea abot this question? in the above statement, what is the meaning og abstarct = true? Thanks In Advance   Hi friend, Read for more information. http
Ask Spring Questions Online
Ask Spring Questions Online       Spring is an open source application Framework for Java platform and .NET Framework. The prime feature of Spring
servlet questions
servlet questions  pls send servlet interview questions to [email protected]
Java - Java Interview Questions
Java  Questions on Java
beginners questions
beginners questions  I need all the possible Java beginners questions to prepare for an Interview
interview questions - Java Interview Questions
interview questions for Java  Hi Any one can u please post the interview point of questions.Warm Regards, Satish
Software Questions and Answers
processes and techniques. AOP - Discuss Spring AOP questions here...Software Questions and Answers View Software Questions and Answers online Discuss Software development questions, ask your questions and get answers
Software Questions and Answers
and techniques. AOP - Discuss Spring AOP questions here. IoC...Software Questions and Answers       View Software Questions and Answers online Discuss Software
java questions - Java Interview Questions
java questions  HI ALL , how are all of u?? Plz send me the paths of java core questions and answers pdfs or interview questions pdfs or ebooks :) please favor me best books of interviews questions for craking
java - Java Interview Questions
Helpful Java Interview questions   Need Helpful Java Interview questions
programming questions
programming questions  this is my assignment questions please help me... the programs in c# language Describe the following with respect to creating Web Forms in .Net environment: a. Web Form Life Cycle b. Creating a Web Form
interview - Java Interview Questions
interview  kindly guide me some interview questions of Java
Hi - Hibernate Interview Questions
Hi   please send me hibernate interview questions
javascript questions on date
javascript questions on date  how to add some days to an existing date
Hibernate - Hibernate Interview Questions
hibernate interview questions and answers  Hi, Can anyone give me the best reference of hibernate interview questions and answers?Thanks in advance
JAVA QUESTIONS - Java Beginners
java questions asked in interview oracle  Hi all, Does anyone have a list of Java questions that is generally asked in Interview at Oracle
Related Questions
Related Questions  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: Related Questions Try to provide me good examples or tutorials links so that I can learn the topic
questions
questions   Q. 1 programes on if....else 1. write a program... (adsbygoogle = window.adsbygoogle || []).push({}); Q. 2 programes on switch.... write a program to print no of days in a given month Q. 3 programes on while
questions
questions
questions
questions
questions
questions
questions
questions
questions
multiple choice questions program
multiple choice questions program  how can i implement the program to store 10 multiple choice questions in one class to develop a oneline quiz with using java language
multiple choice questions program
multiple choice questions program  how can i implement the program to store 10 multiple choice questions in one class to develop a oneline quiz with using java language
jvm - Java Interview Questions
jvm  Can you provide some JVM Questions for Java Interview preparation
Struts - Java Interview Questions
Struts Interview Questions  I need Java Struts Interview Questions and examples
intervw questions for an Android
intervw questions for an Android  Hi Friends, plz send me some important Q&A for an android interview
Example questions of JSP & Servlet
Example questions of JSP & Servlet  Give me some JSP & Servlet Question and their answers
Java Interview Questions
Java Interview Questions  Hi, Can anyone tell the urls of Java Interview Questions on roseindia.net? Thanks
About interview questions
About interview questions   I want interview questions on IDE's Please send links
help me - Java Interview Questions
interview questions java pdf   Do you have any PDF for Java Interview questions
Questions about Java's String pool
Questions about Java's String pool  Questions about Java's String pool
java - Servlet Interview Questions
java  servlet interview questions  Hi friend, For Servlet interview Questions visit to : http://www.roseindia.net/interviewquestions/servlet/ Thanks
multiple choice questions
multiple choice questions  how can i store 10 multiple choice questions in one class with using java language
multiple choice questions
multiple choice questions  how can i implement the program to store multiple questions in class with using core java concepts
interview questions - EJB
interview questions in Java  Need interview questions in Java  Hi,Please check the following linksJ2EE tutorial and documentations: http://www.roseindia.net/ejb/Interview Questions: http://www.roseindia.net
Interview Questions - What is JRE?
Interview Questions - What is JRE?  Hi, What is JRE? Thanks   Hi, JRE is known as Java Runtime Environment and its minimal components... and JVM? View all interview questions at Java Interview Questions with Answers
java certification questions - Java Beginners
java certification questions  i need java certification questions
questions from an xml file
questions from an xml file  i am developing online bit by bit exam for that i retrieved questions from an xml file but when i retrieved using jsp i am getting all questions at a time in a single page.but i want to show one
Interview Questions - What is JDK?
Interview Questions - What is JDK?  Hi, What is JDK? Thanks  .... Check: Beginners Java Tutorials - Installing JDK. View all interview questions at Java Interview Questions with Answers page. Thanks   Video tutorial
java - Java Interview Questions
Java Development  I need a Job in Java Development..so preparing for it. Can anyone please guide me how to prepare and what are the common questions that can be asked at interview
ModuleNotFoundError: No module named 'List-Questions'
ModuleNotFoundError: No module named 'List-Questions'  Hi, My... named 'List-Questions' How to remove the ModuleNotFoundError: No module named 'List-Questions' error? Thanks   Hi, In your python

Ads