Back to Java Users Group Home Print this page

Java Users Group

October 2006 Meeting Information

October 10, 2006
Using Dependency Injection in Your Java Applications with the Spring Framework

Dependency Injection is one of the main "legs" in the Spring triangle. It is a more specific form of Inversion of Control where dependencies among objects are managed via the Spring container. References to objects that work together in an application are automatically "injected" at run-time. This minimizes inherit tight coupling among objects and allows for an application to be re-configured outside of code. We will review some examples of how Dependency Injection can be used in an application. We will also take a quick look at one of Spring's Service Abstractions, JdbcTemplate, by comparing two (2) small applications that access data via JDBC and JdbcTemplate.