Most Read Latest News Blog Resources
Digg!  Digg
Reddit  Reddit


            iphoneapp GET THE APP!

Spring 3.0 refines enterprise Java




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://www.sdtimes.com/link/33837
 

Add comment


Name*
Email*  
Country     


  • Comment
  • Preview
Loading



 
 
 
 
News on Monday
more>>
SharePoint Tech Report
more>>


   

 
 
Download Current Issue
ISSUE 8/1/2010 PDF

Need Back Issues?
DOWNLOAD HERE

Receive the print Edition?


 
blogs tab
Like Ruby n' Rails
Programming languages and Web frameworks go together like peas n carrots. Or Ruby n' Rails.
07/30/2010 04:36 PM EST

Adobe buys a Web-based IDE
Adobe looks to buy a rapid and agile Web development environment.
07/28/2010 03:49 PM EST

OpenStack opens up
OpenStack looks to be an intriguing new idea for running clouds.
07/28/2010 01:56 PM EST

 

Events calendar tab
8/1/2010 to 8/5/2010
Boston
SHARE

8/2/2010 to 8/6/2010
Redmond, Wash.
1105 Media

8/9/2010 to 8/13/2010
Orlando
Agile Alliance

8/23/2010 to 8/26/2010
San Jose
S&S Media

8/30/2010 to 9/2/2010
San Francisco
VMware