Professional Documents
Culture Documents
Topics
What is Spring framework? Why Spring framework? Spring framework architecture Usage scenario Tools (we are going to use in this course)
Web applications Enterprise applications Desktop applications Batch application Integration/SOA application
Key Features - DI
JavaBeans-based configuration management, applying Inversion-of-Control principles, specifically using the Dependency Injection (DI) technique
This aims to eliminate manual wiring of components Spring MVC uses it internally
Generic abstraction layer for database transaction management Higher abstraction over JDBC Integration with persistence frameworks such as Hibernate, JPA
Spring MVC web application framework, built on core Spring functionality, supporting many technologies for generating views, including JSP, Facelets, FreeMarker, Velocity, Tiles, iText, and POI(Java API to Access Microsoft Format files). Spring Web Flow - fine-grained navigation
Extensive aspect-oriented programming (AOP) framework for providing services such as transaction management, security support
As with the Inversion-of-Control parts of the system, this aims to improve the modularity of systems created using the framework.
Promotes de-coupling among the parts that make up an application Insulates a user of a functionality from implementation details POJO classes can be tested without being tied up with the framework
10
Design to interfaces
Easily configured aspects, esp. transaction support Abstractions insulate application from specifics, eliminate redundant code Underlying technology specifics still accessible Handle common error conditions
11
(Or is this a reason not to use it?) Extremely modular and flexible Easy to extend Many reusable classes
Well designed
12
EJB (for Java EE applications) JPA, Hibernate, iBates, JDBC (for data access) Velocity, etc. (for presentation) JSF, Wicket, Struts, etc (For web)
13
15
Usage Scenarios
16
Usage Scenarios
You can use Spring in all sorts of scenarios, from applets up to fully-fledged enterprise applications using Spring's transaction management functionality and web framework integration
17
18
rd
19
20
Tools
21
22
You can use Eclipse and Tomcat for building and deploying Spring application You have to install m2eclipse Maven plug-in's to Eclipse IDE yourself
23
JRebel
JVM plug-in that detects any change in Spring application Java, annotations, configuration files and make the changes instantly visible Commercial product You can get 3-month free license from
http://www.javapassion.com/getjrebel
24
Thank you!
25 31