In this post I am going to discuss about Spring Framework.
What is Spring Framework?
What is Spring Framework?
Spring Framework is an open source application framework for the Java platform.
The first version was written by Rod Johnson, who released the framework with
the publication of his book Expert One-on-One J2EE Design and
Development in October 2002. The framework was first released under
the Apache 2.0 license in June 2003. The first
milestone release, 1.0, was released in March 2004, with further milestone
releases in September 2004 and March 2005. The Spring 1.2.6 framework won
a Jolt
productivity award and a JAX Innovation Award in
2006. Spring 2.0 was released in October
2006, and Spring 2.5 in November 2007. In December 2009 version 3.0 GA was
released. The current version is 3.0.6.
The core features of the Spring Framework can be used by any Java
application, but there are extensions for building web applications on top of
the JavaEE platform.
Although the Spring Framework does not impose any specific programming
model, it has become popular in the Java community as an alternative
to, replacement for, or even addition to the Enterprise JavaBean (EJB) model.
Spring is a framework which can develop all kinds of java/J2EE
applications in framework style based on dependency injection principle. Spring
framework S/W not only provides abstraction layer on Java/JEE core technologies
but also provides abstraction layer on some other framework s/w like hibernate,
toplink etc.
Overview of Spring Framework:
Spring Framework contains a lot of features, which are well-organized in
six modules shown in the diagram below.
The Core package is the most
fundamental part of the framework and provides the IOC and Dependency Injection
features. The basic concept here is the BeanFactory, which provides a sophisticated implementation
of the factory pattern which removes the need for programmatic singletons and
allows you to decouple the configuration and specification of dependencies from
your actual program logic.
The Context package
build on the solid base provided by the Core package: it provides a way
to access objects in a framework-style manner in a fashion somewhat reminiscent
of a JNDI-registry. The context package inherits its features from the beans
package and adds support for internationalization (I18N) (using for example
resource bundles), event-propagation, resource-loading, and the transparent
creation of contexts by, for example, a servlet container.
The DAO package provides a
JDBC-abstraction layer that removes the need to do tedious JDBC coding and
parsing of database-vendor specific error codes. Also, the JDBC package provides a way to do
programmatic as well as declarative transaction management, not only for
classes implementing special interfaces, but for all your POJOs (plain
old Java objects).
The ORM package provides
integration layers for popular object-relational mapping APIs, including JPA, JDO, Hibernate, and iBatis. Using the ORM package you can use
all those O/R-mappers in combination with all the other features Spring offers,
such as the simple declarative transaction management feature mentioned
previously
Spring's AOP package provides an AOP
Alliance-compliant aspect-oriented programming implementation allowing you
to define, for example, method-interceptors and pointcuts to cleanly decouple
code implementing functionality that should logically speaking be separated.
Using source-level metadata functionality you can also incorporate all kinds of
behavioral information into your code, in a manner similar to that of .NET
attributes
Spring's Web package provides basic web-oriented
integration features, such as multipart file-upload functionality, the
initialization of the IOC container using servlet listeners and a web-oriented
application context. When using Spring together with WebWork or Struts, this is
the package to integrate with.
Definition of Spring:
Spring is an open source, light weight, loosely coupled, Aspect
oriented, Dependency injection based framework software of java environment to
develop all kinds of java/J2EE applications having good productivity.

No comments:
Post a Comment