Spring 3.0 refines enterprise Java



Email    print   
October 15, 2009 —  A new expression language and a focus on simplifying configuration mark the version 3.0 release of the Spring Framework, due to be available this month.

Configuration has always been a major headache for Java developers, and the Spring Framework has always focused on refining the configuration process for enterprise Java. Colin Sampaleanu, director of technical sales at SpringSource, said that a number of the changes in Spring 3.0 help ease the process.

“XML configuration syntax has gotten simpler in every release of Spring,” said Sampaleanu. “Until now, Spring supported XML configuration, which could be mixed and matched with internalized annotations inside the code.

"Spring 3.0 adds a third choice: an externalized annotation-based configuration syntax. You have externalized in a Java syntax the kind of stuff you'd put in the XML configuration file. They can pick the best combination of XML, annotations inside the code they want to inject, or annotations in an externalized annotations file.”

The new Spring Expression Language can also be used to simplify the configuration process. The language, Sampaleanu said, is somewhat similar to the Job Submission Description Language, but more powerful. He said that the new expression language can be used to describe tasks and configurations across Spring projects.

Spring 3.0 is also the first version of the framework to fully embrace Java 5. Sampaleanu said that Java 1.5 is the default baseline of capabilities supported in Spring 3.0. That means generics and annotations are finally supported throughout the framework. Annotations in particular are put to heavy use through the configuration changes for the framework.

Keeping up with even newer Java versions, Spring 3.0 also adds first-class support for REST. Previous versions did support exposing services in a RESTful fashion via Spring's Spring-MVC component, but some edge cases were not possible to handle. Thus, in version 3.0, Spring-MVC has been enhanced to handle all common REST scenarios and needed capabilities.

Sampaleanu said that moving to Spring 3.0 should be a relatively simple upgrade for existing Spring applications.

“Just pull down Spring 3 and replace your jars. If you're using Maven or Ivy to pull down jars automatically, then it's a simple matter of pointing to version 3.0," he said. "You're going to just recompile your code, and you may get warnings and a few errors, but it shouldn't be difficult."

Spring 3.0 is backward compatible with previous versions.




Related Search Term(s): Java, Spring


Share this link: http://sdt.bz/33837
 
Most Read Latest News Blog Resources

Add comment


Name*
Email*  
Country     


  • Comment
Loading




close
NEXT ARTICLE
From the Editors: A new spring for Java
Spring's competition with Java provides a good avenue to streamline Java; Amazon's recent troubles should are a lesson for IT Read More...
 
 
 
 
News on Monday
more>>
SharePoint Tech Report
more>>


   

 
 

Download Current Issue
FEBRUARY 2012 PDF ISSUE

Need Back Issues?
DOWNLOAD HERE

Want to subscribe?


 
blogs tab
Are you at risk for burnout?
Burnout is a severe problem and it can strike at any time. Here's how to tell if you are nearing the edge.
02/09/2012 02:16 PM EST

Agility, mom, and apple pie
If we're to evaluate the state-of-the-art in software development, we should start with the values espoused in the Agile Manifesto.
02/07/2012 11:57 AM EST

RIM woos developers with free tablet
How do you get more apps ported to the BlackBerry PlayBook? By giving every developer a free tablet, of course!
02/04/2012 01:57 PM EST

GitHire: Use Headhunters to Find Your Perfect Programmer
Are you a hiring manager tired of scouring the job boards? Check out this new service that will find 5 people interested in your jobs.
02/03/2012 12:17 PM EST

Facebook claims hacker cred
Facebook's SEC S-1 filing form includes a short essay on the Hacker Way by Mark Zuckerberg himself.
02/02/2012 08:26 AM EST

Ryan Dahl steps down
Ryan Dahl, creator of Node.js, steps back from his position as gatekeeper for the project.
02/01/2012 04:58 PM EST

 
Events calendar tab
2/13/2012 to 2/16/2012
Santa Clara
TechWeb

2/26/2012 to 2/29/2012
San Francisco
BZ Media

2/27/2012 to 3/2/2012
San Francisco
RSA

3/4/2012 to 3/7/2012
Las Vegas
IBM Tivoli

3/5/2012 to 3/9/2012
San Francisco
TechWeb