Tuesday, April 7, 2020

Spring Framework modules

Hello,

In this article, I will give you an overview of the different modules of Spring Framework.

As you know Spring is a framework used to develop applications while minimizing configurations and management of databases, logs ...


Spring Core: the kernel, which contains both a set of classes used by all the bricks of the framework and the lightweight container. This basic module is the basic module of a work application on a spring frame.

This core module will provide the following information to Spring programmers.

    1. The way to create spring beans.
    2. How to configure Spring Beans.
    3. How to inject dependencies.
    4. How to obtain a spring-loaded container object.
    5. How to access the spring beans from the container.

Spring AOP: Aspect-oriented programming is a new way of developing real-time applications with the required services

the aspect-oriented programming module, which integrates tightly with AspectJ, a full-fledged POA framework.

The AOP module will provide us with the means to separate the services from the business logic and it will also provide us with the means to inject the services for the business logic at runtime.

This module is intended to implement the middleware services required for business logic. This spring JEE module is an abstraction layer on RMI, Java mail, JMS, Jars etc…

Spring DAO: it is a module which constitutes the basis of access to data repositories, with in particular an implementation for JDBC. Other modules provide abstractions for data access (object-relational mapping solutions, LDAP) which follow the same principles as JDBC support. Spring's transaction management solution is also part of this module. This module will provide an abstraction layer on top of JDBC technology.

By working directly with JDBC technology as programmers, we write the code Boiler-plate (repeated code) like Load the pilot, open a connection, create an instruction and close the objects etc…

Besides the Boiler-plate code, we also need to explicitly handle JDBC exceptions because JDBC exceptions are verified exceptions.

In order to avoid the boiler plate code and also to avoid the Burdon exception handling, the work of the spring frame provided this DAO module.

Spring ORM: This ORM module is an abstraction layer on top of ORM tools and which makes a spring programmer to transfer data between the application and the database in the form of objects. it is a module that offers integration with popular object-relational mapping tools, such as Hibernate, JPA, EclipseLink or iBatis.

ORM tools are very good tools for communicating with databases, but having certain drawbacks, these drawbacks are eliminated in the spring loaded ORM module.

Spring WEB: This module is intended for integration with web applications created in other frameworks (or) to create a complete MVC web application based on a spring frame.

the module including Spring support for web applications. It notably contains Spring Web MVC, Spring's solution for Web applications, and offers integration with many Web frameworks and view technologies.

The Web Spring module is also called Spring Web MVC module and this module is used to create Java Web applications with MVC architecture.

Spring Context: This module supports internationalization (I18N), EJB, JMS, Basic Remoting.

You can consult the article in french, les Modules Spring

0 comments:

Post a Comment