• Complain

J Sharma - Getting started with Spring Framework: a hands-on guide to begin developing applications using Spring Framework

Here you can read online J Sharma - Getting started with Spring Framework: a hands-on guide to begin developing applications using Spring Framework full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2014, publisher: CreateSpace Independent Publishing Platform, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

J Sharma Getting started with Spring Framework: a hands-on guide to begin developing applications using Spring Framework
  • Book:
    Getting started with Spring Framework: a hands-on guide to begin developing applications using Spring Framework
  • Author:
  • Publisher:
    CreateSpace Independent Publishing Platform
  • Genre:
  • Year:
    2014
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Getting started with Spring Framework: a hands-on guide to begin developing applications using Spring Framework: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Getting started with Spring Framework: a hands-on guide to begin developing applications using Spring Framework" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Getting started with Spring Framework, Third Edition is now available.
PDF version of this book is now available: smashwords.com/books/view/716125
Getting started with Spring Framework is a hands-on guide to begin developing applications using Spring Framework. This book is meant for Java developers with little or no knowledge of Spring Framework. All the examples shown in this book use Spring 4.
You can download the examples (consisting of 60 sample projects) described in this book from the following Google Code project: code.google.com/p/getting-started-with-spring-framework-2edition/
Chapter 1 - Introduction to Spring Framework
Chapter 2 - Spring Framework basics
Chapter 3 - Configuring beans
Chapter 4 - Dependency injection
Chapter 5 - Customizing beans and bean definitions
Chapter 6 - Annotation-driven development with Spring
Chapter 7 - Database interaction using Spring
Chapter 8 - Messaging, emailing, asynchronous method execution, and caching using Spring
Chapter 9 - Aspect-oriented programming
Chapter 10 - Spring Web MVC basics
Chapter 11 - Validation and data binding in Spring Web MVC
Chapter 12 - Developing RESTful web services using Spring Web MVC
Chapter 13 - More Spring Web MVC - internationalization, file upload and asynchronous request processing
Chapter 14 - Securing applications using Spring Security
This book covers:
- Specifying configuration metadata using XML and annotations
- Programmatically configuring Spring container and beans
- Configuring different types of bean properties
- Bean lifecycle interfaces
- Customizing beans using BeanPostProcessors and BeanFactoryPostProcessors
- Bean definition inheritance
- JSR 250s and 330s annotations for dependency injection
- Validation using JSR 303 (Bean Validation API) annotations and Springs Validator interface
- SpEL (Spring Expression Language)
- Caching using Springs cache abstraction
- Sending and receiving JMS messages using Spring
- Aspect-oriented programming support in Spring
- Sending emails using Spring
- Asynchronously executing methods using Spring
- Task scheduling
- Database interaction using JDBC and Hibernate
- Programmatic and declarative transaction management
- Spring Web MVC
- Developing RESTful Web Services using Spring
- Spring Security
The book shows a simple internet banking application that is developed incrementally in each chapter of the book and covers the topics mentioned above.
You can post your feedback and questions to the authors in the following Google Groups forum:groups.google.com/forum/#!forum/getting-started-with-spring-framework

J Sharma: author's other books


Who wrote Getting started with Spring Framework: a hands-on guide to begin developing applications using Spring Framework? Find out the surname, the name of the author of the book and a list of all author's works by series.

Getting started with Spring Framework: a hands-on guide to begin developing applications using Spring Framework — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Getting started with Spring Framework: a hands-on guide to begin developing applications using Spring Framework" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make

Gettingstarted with Spring Framework

SecondEdition

Ashish Sarin, JSharma


Table of contents

Preface
How to usethis book

Download sample projects

This bookcomes with many sample projects that you can download from the following GoogleCode project : http://code.google.com/p/getting-started-with-spring-framework-2edition/ . You can download the sample projects as a single ZIP file or youcan checkout the sample projects using SVN. For more details, refer to theabove URL.

Import sample projects into your Eclipse or IntelliJ IDEA IDE

If you see IMPORT chapter/ at any point while reading the book, you shouldimport the specified project into your Eclipse or IntelliJ IDEA IDE (or anyother IDE that you are using). The sample projects use Maven 3.x build tool for building the project; therefore, youll find a pom.xml fileinside each of the projects. A pom.xml file is also provided at the root of the source code distribution,which builds all the projects.

Referappendix A to see the steps required for importing and running the sampleprojects.

Refer to code examples

Eachexample listing specifies the sample project name (using Project label) and the location of the source file (using Source location label). If the Project and Sourcelocation labels are not specified, you canassume that the code shown in the example listing is not being used anywhere inthe sample projects, and it has been shown purely to simplify understanding.

Conventionsused in this book

Italics has been used for emphasizing terms

Comic Sans MS hasbeen used for example listings, Java code, configuration details in XML andproperties files

Comic Sans MS hasbeen used in example listings to highlight important parts of the code orconfiguration

A NOTE highlights an importaint point.

Feedback andquestions

You canpost your feedback and questions to the authors in the following Google Groupsforum: https://groups.google.com/forum/#!forum/getting-started-with-spring-framework

About theauthors

AshishSarin is a Sun Certified Enterprise Architect withmore than 14 years of experience in architecting applications. He is the authorof SpringRoo 1.1 Cookbook (by Packt Publishing) and Portlets in Action (by Manning Publications)

JSharma is a freelance Java developer with extensiveexperience in developing Spring applications.

Chapter 1 Introduction to Spring Framework
1-1Introduction

In thetraditional Java enterprise application development efforts, it was adevelopers responsibility to create well-structured, maintainable and easilytestable applications. The developers used myriad design patterns to addressthese non-business requirementsof an application. This not only led to low developer productivity, but alsoadversely affected the quality of developed applications.

SpringFramework (or Spring in short) is an open source application framework fromSpringSource ( http://www.springsource.org )that simplifies developing Java enterprise applications. It provides theinfrastructure for developing well-structured, maintainable and easily testableapplications. When using Spring Framework, a developer only needs to focus onwriting the business logic of the application, resulting in improved developerproductivity. You can use Spring Framework to develop standalone Javaapplications, web applications, applets, or any other type of Java application.

Thischapter starts off with an introduction to Spring Framework modules and itsbenefits. At the heart of Spring Framework is its Inversion of Control ( IoC) container, whichprovides dependency injection (DI) feature. This chapter introduces Springs DI featureand IoC container, and shows how to develop a standaloneJava application using Spring. Towards the end of this chapter, well look atsome of the SpringSources projects that use Spring Framework as theirfoundation. This chapter will set the stage for the remaining chapters thatdelve deeper into the Spring Framework.

NOTE In this book, well use an example Internet Banking application, MyBank , to introduceSpring Framework features.

1-2 SpringFramework modules

Spring Framework consists of multiple modules that are grouped basedon the application development features they address. The following tabledescribes the different module groups in Spring Framework:

Modulegroup

Description

Core container

Contains modules that form the foundation of Spring Framework. The modules in this group provide Springs DI feature and IoC container implementation.

AOP and instrumentation

Contains modules that support AOP (Aspect-oriented Programming) and class instrumentation.

Data Access/Integration

Contains modules that simplify interaction with databases and messaging providers. This module group also contains modules that support programmatic and declarative transaction management, and object/XML mapping implementations, like JAXB and Castor.

Web

Contains modules that simplify developing web and portlet applications.

Test

Contains a single module that simplifies creating unit and integration tests.

The abovetable shows that Spring covers every aspect of enterprise applicationdevelopment; you can use Spring for developing web applications, accessingdatabases, managing transactions, creating unit and integration tests, and soon. The Spring Framework modules are designed in such a way that you only need to include the modules that your application needs. Forinstance, to use Springs DI feature in your application, you only need toinclude the modules grouped under Core container . As youprogress through this book, youll find details of some of the modules that arepart of Spring, and examples that show how they are used in developingapplications.

Thefollowing figure shows the inter-dependencies of different modules of Spring:

Figure 1-1 Spring modulesinter-dependencies You caninfer from the above - photo 1

Figure 1-1 Spring modulesinter-dependencies

You caninfer from the above figure that the modules contained in the Core container group are central to the Spring Framework, and other modules dependon it. Equally important are the modules contained in the AOP and instrumentation group because they provide AOP features to other modules in theSpring Framework.

Now, thatyou have some basic idea about the areas of application development covered bySpring, lets look at the Spring IoC container.

1-3 SpringIoC container

A Javaapplication consists of objects that interact with each other to provide applicationbehavior. The objects with which an object interacts are referred to as its dependencies . For instance, if an object X interacts with objects Y and Z, thenY and Z are dependencies of object X. DI is a design pattern in which thedependencies of an object are typically specified as arguments to itsconstructor and setter methods. And, these dependencies are injected into theobject when its created.

In aSpring application, Spring IoC container (also referred to as Spring container)is responsible for creating application objects and injecting theirdependencies. The application objects that the Spring container creates andmanages are referred as beans . As the Spring container is responsible for putting togetherapplication objects, you dont need to implement design patterns, like Factory,Service Locator, and so on, to compose your application. DI is also referred toas Inversion of Control (IoC) because the responsibility of creating andinjecting dependencies is

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Getting started with Spring Framework: a hands-on guide to begin developing applications using Spring Framework»

Look at similar books to Getting started with Spring Framework: a hands-on guide to begin developing applications using Spring Framework. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Getting started with Spring Framework: a hands-on guide to begin developing applications using Spring Framework»

Discussion, reviews of the book Getting started with Spring Framework: a hands-on guide to begin developing applications using Spring Framework and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.