Thursday 17, Apr 2025
We are moved to new domain
Click -> www.ehowtonow.com
Sunday, 22 September 2013

Spring - Introduction


In this tutorial we are going to see brief introduction about Spring  Framework.This tutorials created by referring spring framework 3.2.4 reference document.

Overview of Spring Framework

The Spring framework is a lightweight framework for building the enterprise ready application.However, Spring is modular allowing you to use only those parts that you need, without having to bring in the rest. You can use the IoC container, with Struts on top, nut you can also use only Hibernate integration or the JDBC abstract layer. The Spring Framework supports declarative transaction management, remote access to your logic through RMI or web services, and various options for presenting your data. Its offer a full-featured MVC framework, and enables you to integrate AOP transparently into your software.

Spring is designed to be non-intrusive, meaning that your domain logic code generally has no dependency on framework itself. In your integration layer (such as data access layer), some dependencies on the data access technology and Spring libraries will exist. However, it should be easy to isolate these dependencies from the rest of your code base.

Introduction

Spring is a Java Platform that provides comprehensive infrastructure support for developing Java application.Spring handles the infrastructure so you can focus on your application.

Spring enables you to build application from Plain Old Java Object (POJO) and apply enterprise services non-invasively to POJO.This capability applies to the JavaSE programming model and to full and partial JavaEE.

Spring framework targets to make J2EE development easier.The important concept of Spring frameworks are

  1. DI – Dependency Injection
  2. IoC – Inversion of Control
  3. AOP – Aspect Oriented  Programming

Inversion of Control and Dependency Injection

The most important feature of Spring framework is the Dependency Injection(DI) flavor of Inversion of Control. Dependency Injection is merely one concrete example of Inversion of Control.

Inversion of Control and Dependency Injection are the design pattern used to remove dependency from the code.It makes the code easier to maintain and test.When writing complex application, application classes must be independent to each other to increase the possibility of reuse the classes. we will learn these concept in separate chapter.

Aspect Oriented  Programming

Aspect Oriented  Programming is the one of the important component of spring framework.Aspect Oriented  Programming is used to separate the  cross-cutting concerns from the application’s business logic.Example for cross-cutting concerns are logging, transactions management, security, caching etc.

Dependency Injects help us to separate the cross-cutting concerns from application business logic.I will explain  Aspect Oriented  Programming in separate chapter.

Advantage of Spring Framework 

1. Lightweight

Spring framework is lightweight because of its POJO style implementation.The Spring framework doesn’t force us to inherit any class or implements any interface.

2. Loosely Coupled

The spring applications are loosely coupled by using Dependency Injection

3. Easy to develop

Spring Framework support integration of various framework, its makes development easier.

4. Easy to Test 

The Dependency Injection makes testing easier and also Spring Frame work doesn’t require any application server to run the application.

5. Powerful abstraction

Spring Framework provides abstraction to specification like JMS, JDBC, JPA, JTA, etc.

Shop and help us

Flipkart Offer Snapdeal offer Amazon.in offer Amazon.com offer

Related Posts:

  • Spring IoC ContainersIn this tutorial we are going to see the introduction about spring IoC container. Note : this tutorial and image created by referring spring 3.2.6 documentation. IoC – Inversion of Control IoC is also known as dependency i… Read More
  • Spring Hello World Program using Spring Source Tool In this tutorial we are going to see how to create Spring Hello World program .Step by step procedure to create Spring Program using Eclipse and Spring Source tool is given below, before start this tutorials refer http://www… Read More
  • Spring Initialization CallbacksIn this tutorial we are going to see Spring Life cycle - Initialization callbacks (init(),InitializingBean ) with example program.The org.springframework.beans.factory.InitializingBean interface allows a bean to perform initi… Read More
  • Spring Bean Overview In this tutorial we are going to see the overview of Spring Bean. A bean is an objects that are managed by the Spring IoC  container.A Spring IoC container manages one or more beans. These beans are created with the con… Read More
  • Spring BeanFactory Vs ApplicationContext In this tutorials we are going to see why ApplicationContext container is better than BeanFactory  container. The ApplicationContext includes all the functionality of BeanFactory, it is generally recommended over the Be… Read More
  • Blogger Comments
  • Facebook Comments
  • Disqus Comments

0 comments:

Post a Comment

Item Reviewed: Spring - Introduction Rating: 5 Reviewed By: eHowToNow