Results 1 to 4 of 4

Thread: Changes in Spring for JDK 1.5 (Generics&Annotations)?

  1. #1

    Default Changes in Spring for JDK 1.5 (Generics&Annotations)?

    I am wondering what changes are planned for Spring to better support the new JDK 1.5 features (especially Generics and Annotation meta-data) ?

  2. #2
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    We're working on annotation support already (for transaction annotations etc).

    Unfortunately backward compatibility is essential so we can't rewrite the framework internals using generics. Its surprising how many big enterprise users are still on 1.3, let alone 1.4, so we have 1.3 compatibility (although we use 1.4 optimizations). So although I would love never to have to pull another Object out of a Collection we can't think about that internally yet.

    So what we do for 1.5 must be backward compatible, but we can autodetect and use more efficient classes etc in some cases.

    We will probably do quite a bit on samples: for example, showing how if your project is using 1.5 you get to use generics and how that would impact the coding of an application using Spring.
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

  3. #3

    Default Backward compatibility vs dated design ?

    Thanks for the reply! I understand and agree with the compability issues.

    As you write new spring projects may benefit from using 1.5 features and examples of that would be very useful!

    However since I am considering some using spring for new JDK1.5 projects that I want to be future-oriented, I am a bit concerned that some of the new JDK 1.5 features may soon cause the spring apprach to appear outdated and non-complient regarding meta-data. I.e. in a few years the idea of having all meta-data in XML files may be considered a legacy apprach because annotations would be the normal way to work with meta-data.

  4. #4
    Join Date
    Sep 2004
    Posts
    3

    Default Re: Backward compatibility vs dated design ?

    Quote Originally Posted by mmc
    However since I am considering some using spring for new JDK1.5 projects that I want to be future-oriented, I am a bit concerned that some of the new JDK 1.5 features may soon cause the spring apprach to appear outdated and non-complient regarding meta-data. I.e. in a few years the idea of having all meta-data in XML files may be considered a legacy apprach because annotations would be the normal way to work with meta-data.
    I woundn't be so sure of that. It has already been discussed elsewhere, and though annotations are relatively new (compared to config files), both have their pros and cons, so I'd believe that both will coexist, perhaps forever. IMO, more "static" (compile-time) configurations will use annotation, and more "dynamic" (runtime) configurations will remain on XML files, maybe even allowing for XML config to replace annotations values. In this case, annotations could be seen as "default values", and XML files would be the way to redefine such defaults to different ones.

    Regards,
    Henrique Steckelberg

Similar Threads

  1. Spring MVC Web Framework versus Struts
    By biguniverse in forum Web Flow
    Replies: 27
    Last Post: Aug 29th, 2012, 03:57 AM
  2. Replies: 5
    Last Post: Aug 9th, 2008, 05:30 AM
  3. A Spring Class Loader?
    By azzoti in forum Architecture
    Replies: 8
    Last Post: May 7th, 2005, 04:02 AM
  4. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  5. Replies: 2
    Last Post: Jan 21st, 2005, 04:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •