Home > java > Spring framework in java

Spring framework in java

Spring Framework in java

Spring framework in java


Spring framework is an application framework, which used to develop various types of java, J2EE application. Spring framework is open source, lightweight, loosely coupled, aspect-oriented and dependency injection based java application framework.

open source: It is not only free software but its source code is also exposed to the programmer along with installation.

lightweight: Spring containers are lightweight container because they can be activated anywhere by just creating an object for certain pre-defined classes.

loosely coupledIf a degree of dependency is less between two component then we can say the components are loosely coupled.

aspect-orientedDivided program into several parts as primary logic, secondary logic, and middleware logic to make the program easy to develop and understand.

dependency injection: The underlying web container or server software assigns values to the resource automatically or dynamically. Ex: Constructor.


Seven  Module of Spring

  1. The Core container module
  2. Application context module
  3. AOP module (Aspect Oriented Programming)
  4. JDBC abstraction and DAO module
  5. O/R mapping integration module (Object/Relational)
  6. Web module
  7. MVC framework module

The basic container:

The main container provides essential features of the Spring framework. The main component of the main container is BeanFactory, an implementation of the Factory model. BeanFactory applies the Inversion of Control (IOC) template to separate the application configuration and dependency specification from the actual application code.


Spring context:

The Spring context is a configuration file that provides context information to the Spring framework. The Spring context includes enterprise services such as JNDI, EJB, email, internalization, validation, and planning.


Spring AOP:

The Spring AOP module integrates aspect-oriented programming functionality directly into the Spring framework, through its configuration management function. As a result, you can easily enable AOP for any object managed by the Spring framework. The Spring AOP module provides transaction management services for objects in any Spring application. With Spring AOP, you can integrate declarative transaction management with your applications without using EJB components.


Spring DAO:

The JDBC Spring DAO Abstraction Layer provides a significant exception hierarchy for managing exception handling and error messages issued by different database providers. The exception hierarchy simplifies error handling and dramatically reduces the amount of exception code to write, such as opening and closing connections. The Spring DAO JDBC exceptions conform to its generic DAO exception hierarchy.


Spring ORM:

The Spring framework connects to multiple ORM frameworks to provide its Object Relational tool, including JDO, Hibernate, and iBatis SQL Maps. All of these elements are consistent with Spring’s generic transaction and DAO hierarchies.


Spring Web Module:

The Web Context Module is based on the Application Context Module, providing contexts for web applications. Therefore, the Spring framework supports integration with Jakarta Struts. The Web module also facilitates multi-part query management and binding of request parameters to domain objects.


Spring MVC:

The Model-View-Controller Framework (MVC) is a complete MVC implementation for creating Web applications. The MVC framework is highly configurable via strategic interfaces and supports many display technologies including JSP, Velocity, Tiles, iText, and POI.


Related Topics:-

You may also like :-
Admin
We are group of application developer and admin.We are providing good content of information about IT technology and services .

Leave a Reply

Your email address will not be published. Required fields are marked *