You are on page 1of 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