0% found this document useful (0 votes)
23 views

Spring Framework: Brief Glance at The Framework

The document provides an overview of the Spring Framework. It discusses how Spring allows developers to access databases, call remote services, and handle messages without dealing directly with transaction APIs, remote APIs, or JMS APIs. Spring offers a modular, flexible application framework using techniques like inversion of control and dependency injection. It can be used to build both standalone and enterprise applications. The core Spring packages provide the infrastructure for dependency injection and configuration through XML or annotations.

Uploaded by

Samarthya
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as ODP, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Spring Framework: Brief Glance at The Framework

The document provides an overview of the Spring Framework. It discusses how Spring allows developers to access databases, call remote services, and handle messages without dealing directly with transaction APIs, remote APIs, or JMS APIs. Spring offers a modular, flexible application framework using techniques like inversion of control and dependency injection. It can be used to build both standalone and enterprise applications. The core Spring packages provide the infrastructure for dependency injection and configuration through XML or annotations.

Uploaded by

Samarthya
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as ODP, PDF, TXT or read online on Scribd
You are on page 1/ 7

Spring Framework

Brief glance at the framework.

Agenda

What is Spring Framework? Where is it useful? Why Spring?

Examples :
Open Source

What is it?

Make a Java method execute in a database transaction without having to deal with transaction APIs. Make a local Java method a remote Java Platform that provides infrastructure procedure without having to deal with remote APIs.

Make a local Java method a management operation without having to thatwith JMX APIs. Collection of JARS deal define the

support to develop applications (enterprise or standalone) complete

framework. Make a local Java method a message handler without having to deal with JMS APIs. JAR = Java ARchive

Non intrusive (not completely)

Spring Framework
Data Access AOP WEB

Test

Core Container Instrumentation

Why Spring?

Web Application

For example, the JdbcTemplate works well with The JpaTemplate does good things with JPA, Open Source Application Framework. JmsTemplate makes JMS pretty straightforward Modular and flexible (Use what you want). Inversion of Control and Dependency Injection. Simple, productive, programing model. Whether SE or EE you still can use it. Easy configuration XML or annotation. Spring provides a lot of templates which act as base classes to make using the JEE standard technologies a breeze to work with.

When you need to access existing code through web services

Demo Time

The org.springframework.beans and org.springframework.context packages are the basis for Spring Framework's IoC container.

The interface Beans: The objects that form the backbone of your org.springframework.context.ApplicationContext application and that are managed by the Spring IoC represents the Spring container are called beans. IoC container and is responsible for instantiating, configuring, and Dependency Injection, IoC assembling the beans.

MVC Controller (Rest Service)

ApplicationContext is a sub-interface of BeanFactory.

Bean

You might also like