Search and Find
Service
Contents at a Glance
5
Contents
6
About the Author
11
About the Technical Reviewer
12
Acknowledgments
13
Introduction
14
Who This Book Is For
14
How This Book Is Structured
15
Downloading the Code
16
Contacting the Author
16
An Introduction to Spring
17
Frameworks
17
Inversion of Control ( IOC)
18
An Agile Framework
21
Aspect- Oriented Programming ( AOP)
22
Libraries
23
Spring and Web Applications
24
Documentation
26
Other Tools
27
Conclusion
28
Presenting the Sample Application
29
Rationale
29
Architecture of the Sample Application
29
Specification
33
Maven
35
Configuration Files
42
Tests
42
The Web Application
42
Conclusion
43
The Heart of Spring: Inversion of Control
44
Benefits and Disadvantages of DI
44
Coupling
45
The Need for a Framework
49
The Container
49
XML Configuration
53
XML Schema – Based Configuration
60
Annotation- Based Configuration
62
Conclusion
69
Data Access
70
Persistence Frameworks
70
DAOs
71
Templates and Support Classes
74
Plain Old JDBC
76
Hibernate
79
Conclusion
88
The Service Layer, Transaction Management, and AOP
89
Implementing Services in Spring
90
Transactions
92
Aspect- Oriented Programming ( AOP)
100
Conclusion
119
Web Applications
120
The Model View Controller Pattern
120
Managing Contexts
121
Spring MVC
123
Spring Web Flow
133
Forms and Binding
139
Views
140
Filters
145
Conclusion
149
Security
150
Securing the Web Components
151
Making Security Decisions
165
Securing the Service Layer
167
Conclusion
169
Sending E-mail
170
Using the Mail Sender
171
Sending Plain Text
173
Sending Formatted HTML
176
Including Inline Images and Attachments
179
Conclusion
183
Remoting
184
Remoting Mechanisms
184
Conclusion
204
Testing
205
Unit Testing
206
Integration Testing
238
Web Testing
238
Regression Testing
239
Conclusion
239
The Spring IDE Plug-in for Eclipse
240
Installing the Plug- in
240
Managing Bean Configurations
243
Managing Spring Web Flow Configuration
249
Using File- Creation Wizards
254
Conclusion
255
Index
256
All prices incl. VAT