A tour of Spring dependency injection styles
Java Shell Groovy
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gradle/wrapper Upgrade to Gradle 1.0-rc3 May 23, 2012
slides Add link to webinar video on YouTube May 31, 2012
style-0-nospring/src
style-1-xml Update projects for May 2012 webinar May 24, 2012
style-2-namespace Update projects for May 2012 webinar May 24, 2012
style-3-autowired Update projects for May 2012 webinar May 24, 2012
style-4-javaconfig Update projects for May 2012 webinar May 24, 2012
style-5-hybrid Update projects for May 2012 webinar May 24, 2012
.gitignore Update projects for May 2012 webinar May 24, 2012
README.md
build.gradle Upgrade to use Spring 3.2.0.M1 May 31, 2012
gradlew
gradlew.bat
settings.gradle Update projects for May 2012 webinar May 24, 2012
showoff.json Update projects for May 2012 webinar May 24, 2012

README.md

Simple projects containing the same application configured in different ways using Spring (and in one case without Spring at all).

Clone the repo in typical fashion, or download a zip of the sources.

Browse through the slides or watch the original one-hour webinar on YouTube. Either one will give you a good sense of what each project intends to demonstrate.

Build and test everything and run the TransferScript main methods with

gradlew run test

Import the projects into Eclipse with

gradlew eclipse

and then File->Import->Existing Projects Into Workspace. For IDEA users, it's gradlew idea.

Once you're looking at the code, just browse around. Review how DefaultTransferService works. Look at each of the following and see how they differ across projects:

  • TransferScript
  • TransferServiceTests
  • app-config.xml

Explore, experiment, have fun!