The Spring Framework A quick overview. The Spring Framework 1. Spring principles: IoC 2. Spring principles: AOP 3. A handful of services 4. A MVC framework.

Slides:



Advertisements
Similar presentations
Introduction to the Spring Framework
Advertisements

Spring, Hibernate and Web Services 13 th September 2014.
Introduction to the Spring Framework University of Kansas January 2009 This presentation and example application are available at
Computer Monitoring System for EE Faculty By Yaroslav Ross And Denis Zakrevsky Supervisor: Viktor Kulikov.
Next Generation Node (NGN) Technical Overview April 2007.
Review Amit Shabtay. March 3rd, 2004 Object Oriented Design Course 2 Review What have we done during the course? Where to learn more? What is for the.
© 2005, Cornell University. Rapid Application Development using the Kuali Architecture (Struts, Spring and OJB) A Case Study Bryan Hutchinson
Pragmatic Application Building: Step by Step Jay Sissom Principal Systems Analyst Indiana University
Address - #22, 1 st Floor, Station View Road, Kodambakkam, Chennai JTech Soft Solutions Website:
The Spring Framework: A brief introduction to Inversion of Control James Brundege
Intro to Spring CJUG - January What is Spring? “The Spring framework provides central transaction control of various objects.” This means that any.
Using Third-Party Frameworks in Building Blocks™ David Ashman Principal Architect, Product Development.
Struts 2.0 an Overview ( )
UNIT-V The MVC architecture and Struts Framework.
Lecture 2 - Struts ENTERPRISE JAVA. 2 Contents  Servlet Deployment  Servlet Filters  Model View Controllers  Struts  Dependency Injection.
Spring Roo CS476 Aleksey Bukin Peter Lew. What is Roo? Productivity tool Allows for easy creation of Enterprise Java applications Runs alongside existing.
Struts Petstore Struts University Series. Abstract Struts has always shipped with a simple example application. But for many teams, MailReader is a bit.
WebWork in Action An introduction to WebWork Patrick A. Lightbody.
NetArchive Suite Workshop 2011 Technical Track - Code refactoring with the Spring Framework.
Spring Framework. Spring Overview Spring is an open source layered Java/J2EE application framework Created by Rod Johnson Based on book “Expert one-on-one.
Copyright 2006, Codeguild, Inc Spring Framework Fundamentals March, 2006 Larry Hamel Codeguild, Inc.
Spring Overview, Application demo -Midhila Paineni 09/23/2011 Spring Overview, Application demo9/8/20151.
UPortal Developers MIT August 2004 Persistence Strategy for uPortal 3 Mike DeSimone the r-smart group
BEST PRACTICES - Java By Configuration Use global-forwards/results Helps to avoid duplicate jsp files and redundancy forward mapping.
The Spring Framework Training Get to know Spring Framework Rohit Prabhakar
Introduction to the Spring Framework Rajesh. Spring Mission Statement J2EE should be easier to use OO design is more important than any implementation.
Traditional Web Based Application Structure Frameworks define how the application is designed, organised and deployed across various tiers.
Portlet Framework: the Liferay way Liferay Service Builder, Portlet MVC Catania, 10/06/2014Riccardo Rotondo.
Copyright (C) 2009 by Abdelmonaim Remani. All rights reserved. By Abdelmonaim Remani Polymathic-coder.com Silicon Valley Code.
OpusCollege and the use of Spring and iBatis
Text 16 de mayo de 2009 Spring Framework Part I. Dependency Injection Buenos Aires, May 2009.
Opus College - overview. OpusCollege - background First project: ICT Capacity Building Mozambican Higher Education Institutions Partners: RUG Groningen,
CHEF II / Sakai Architecture. CHEF II Changes uPortal replaces Jetspeed –jsr 168 portlet, servlet compliant Spring replaces Turbine component framework.
Spring Framework. Spring Overview Spring is an open source layered Java/J2EE application framework Created by Rod Johnson Based on book “Expert one-on-one.
Spring Data Access By, Srinivas Reddy.S
Presentation. Recap A multi layer architecture powered by Spring Framework, ExtJS, Spring Security and Hibernate. Taken advantage of Spring’s multi layer.
Spring Database Access Ojitha Kumanayaka Copyright © Virtusa, 2007.
A Presentation By V AIBHAV S AHARAN Web-enHanced Information Management COMS E6125.
Case Study ProsperaSoft’s global sourcing model gives the maximum benefit to customers in terms of cost savings, improved quality, access to highly talented.
Spring Framework. About spring Spring is the most popular application development framework for enterprise Java. Millions of developers around the world.
Struts Framework Anna Paščenko. What is Struts?  An open source framework for building Java web applications.
Apache Struts. J2EE Web Application using MVC design pattern Why MVC? Separate components = easier maintenance – Model component holds object data – View.
Enterprise Java Overview Panos Konstantinidis Java Developer JUG Leader & Java Champion
Text 16 de mayo de 2009 Spring Framework Part III. Portable Service Abstractions Buenos Aires, June 2009.
Copyright 2007 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Spring MVC Essentials Getting started.
Katari Globant 2008 (update to 2010). Katari  Katari is a framework to use as a starting point to develop new web applications.  Incorporates architecture,
JAVA EE 6 Best Practices for Migrating Spring to WTF ?!?
Copyright 2007 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Introduction to Data Access with Spring.
Kansas City Java User’s Group Jason W. Bedell July 12, 2006
CAS 3 Introduction and Overview. CAS2 is simple to understand 6 servlets and fewer than 10 JSPs 6 servlets and fewer than 10 JSPs auth package – where.
Text 16 de mayo de 2009 Spring Framework Part III. Portable Service Abstractions Buenos Aires, June 2009.
Copyright 2007 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Overview of the Spring Framework Introducing.
Spring JDBC Dima Ionut Daniel. Contents What is Spring JDBC? Overview Spring JDBC Core SQL Exceptions Database Connection Batch Operations Handling BLOB/CLOB.
Singleton Academy, Pune. Course syllabus Singleton Academy Pune – Course Syllabus1.
Fast Track Policy & Claim Services Module-1:User Management Anand Kumar Prajapati Anubha Asna Nagina Salma Shaik Peter Ernesto Alyosha Soham Gupta Sourav.
Text 16 de mayo de 2009 Spring Framework Part III. Portable Service Abstractions and Spring MVC Buenos Aires, June 2009.
Statistics Estonia's new system for statistical data activity processing (VAIS) ITDG Luxembourg 2010 Allan Randlepp.
Tutorial on Science Gateways, Roma, Riccardo Rotondo Portlet Framework: the Liferay way Liferay Service Builder, Portlet MVC.
Training What’s Spring? The leading full-stack Java/JEE application framework.
J2EE Lecture 6: Spring – IoC and Dependency Injection
Spring Framework Power to the POJO.
Web Routing Designing an Interface
Recent trends in estimation methodologies
Server Concepts Dr. Charles W. Kann.
Unit 6-Chapter 2 Struts.
By Ru Shen Department of Computer Science UAlbany, 2008
Intro to Spring CJUG - January 2013.
Java Web Application Framework
The Model Layer What is Model?
Leveraging ColdSpring To Make Better Applications
Presentation transcript:

The Spring Framework A quick overview

The Spring Framework 1. Spring principles: IoC 2. Spring principles: AOP 3. A handful of services 4. A MVC framework 5. Conclusion

1. Spring principles: IoC Inversion of Control: an object interacts with its environment Objects are « plugged » one in another The environment is set up by the container instead of the object itself

1. Spring principles: IoC Without IoC: With IoC

1. Spring principles: IoC Useful for separating dao and business layer Useful for separating controllers and business layer The code is more extensible, easier to read, and modules/layers can easily be replaced

2. Spring principles: AOP Separates the core business code from the aspects we wrap around it: security, transaction management, … Through AOP, we add transversal functionalities to objects (ie not directly related to the code it contains)

2. Spring principles: AOP Without AOP With AOP

2. Spring principles: AOP Useful for automatic handling of transaction with Hibernate Useful for Acegi (automatic credentials checking before executing some methods) Code smaller, easier to read (not polluted by transversal aspects not directly relevant)

3. A handful of services

DAO support: Spring offers templates classes to deal with a Hibernate/JDBC/… connection Exception translator: all the proprietary Hibernate/JDBC/… exceptions are catched by Spring, and rethrown as Runtime non-specific consistent exceptions Hence the DAO code is not dependant on the underlying datasource!

3. A handful of services Many ORM tools are supported: Hibernate, JDO, Apache OJB, iBATIS Templates using IoC to reduce the amount of code in the DAO objects

3. A handful of services Support of RMI Very easy to expose and connect to webservices Support of JMS JMS templates, JMSException translation

3. A handful of services

A mail abstraction layer – Templates Jobs scheduling (Quartz, Timer) – Cron – Business layer unaware

4. A full MVC Framework Clear separation of roles: controller, validator, form object, Dispatch servlet, View resolver, … Extensible and adaptable Several views of a result (pdf, excel, html, …) Can be wired (possible to use transparently the IoC pattern)

4. A full MVC Framework Can be used with other frameworks: JSF, Struts, Tapestry, Webwork Completely transparent: no need to change anything in what is done by these other frameworks

4. A full MVC Framework

5. Conclusion Learning curve XML configuration & annotations Tiny Open-source and free Active development Linked with several important Java projects (Hibernate, Acegi, …)