The Artima Developer Community
Sponsored Link

Java Buzz Forum
The value of Spring

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
The value of Spring Posted: Jan 31, 2006 3:38 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: The value of Spring
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement

Crazy Bob wrote about how he doesn't get Spring, which was obviously going to get a lot of attention ;)

I see a lot of value in Spring, from projects in which I use it on. As you go from project to project, you tend to bring with you code from past projects. This may be a StringUtil, a bunch of other old code, or 3rd party libraries.

Spring is an item that tends to join me across Java projects that follow particular conventions.

This isn't because Spring is so amazingly different that it changes everything I do. It is because it does things that I could do but don't want too.

  • Dependencies: Yup, I could use Pico, or another DI framework, or my own thing. Spring happens to have the most features of the bunch though, and works nicely
  • Testing: I tend to wire up all of my tests via Spring. I slap in a different test bean config, and it all gets slurped up for tests, making it zero work to wire in my tests
  • Non-XML: You don't have to use XML to wire up Spring. You can even use Ruby if you want ;)
  • Wrapper functionality: Spring is part DI, part wrapper libraries to make life easier. These guys went through the various frameworks and made them easier to use. Spring-Hibernate wrappers, JDBCTemplate, JTA stuff, you name it there is a Spring wrapper that makes things easier to use.
  • Business logic: I want to write business logic. I don't want to rev my own DI framework, and other infrastructure crud. Think about the man-hours that have been put into Spring. The testing that has been done so it works across domains. Why would I want to do this myself when I can have others do it.
  • AOP: The simple Spring-AOP interceptors are simple, but now with AspectJ integration you have the power of AOP at your fingertips

It's there. It works well. It is developed and tested by others. It means that I write less code. Why wouldn't I use it?

Interestingly, in my current non-Java projects I don't feel the need for this type of framework since I don't have the complexity of the world of Java.

Read: The value of Spring

Topic: [Jan 20, 2006 13:50 PST] 16 Links Previous Topic   Next Topic Topic: FeedLounge.com Key Shortcuts [Flickr]

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use