Port of schuchert.wikispaces.com


Designing_to_Spring_Templates

Designing_to_Spring_Templates

Home Next–>

Designing to Spring Templates

Background

Late in 2005 I gave a presentation to the Oklahoma City Java Users’ Group on the design forces that seemed to be behind the Spring Templates. I’ve re-created that presentation here and included all of the code. In addition, these notes include more details on the code that I didn’t have time to present at the OkC JUG.

The Full Source + Instructions

Get the full source for this example, along with installation instructions, here.

Introduction

The Spring Templates tend to take care of certain responsibilities for you to make you use of some underlying resource easier and more reliable. Spring specifically:

The question this article tries to answer is “How did they come up with that design?” What series of steps did they go through to get from the typical work of using, for example, JDBC to what is the Spring JdbcTemplate?

To get from “normal” JDBC to the Spring JdbcTemplate we’ll go through a total of 9 steps, although two of the steps introduce batch operations. Those steps are:

Note, once you select on any of the above links, the next and previous links will take you through the above links in order and will not get you back here (unless you are on the first or last item in the list).

I’d appreciate any feedback you have to offer. Please write me: schuchert@yahoo.com.

Home Next–>


Comments

" Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.