Results 1 to 6 of 6

Thread: Annotations

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Location
    San Francisco, Ca
    Posts
    6

    Default Annotations

    Is there any plans to leverage Java 5.0 annotations instead of commons-attributes. The spring framework is going to leverage annotations and other java 5.0 enhancements in a separate source tree that is available when running under jdk 5.0.

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

    Default

    Yes, we haven't finally decided where to put the 1.5-specific source, but work is under way. Working transaction annotation support is already in the "samples" module under the "tiger" directory, although it will move to a proper home.

    Annotation support will be released in 1.2, although transaction annotations are ready for use from CVS now.
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

  3. #3
    Join Date
    Aug 2004
    Location
    San Francisco, Ca
    Posts
    6

    Default

    Yes, I already saw the spring annotation stuff and I was wondering if the acegi security system is also going to leverage annotations.

  4. #4
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    We use (in MethodDefinitionAttributes) Spring's org.springframework.metadata.Attributes. As described in the latter's JavaDocs:

    The purpose of using this interface is to decouple Spring code from any specific attributes implementation. Even once JSR-175 is available, there is still value in such a facade interface, as it allows for hierarchical attribute sources: for example, an XML file or properties file might override some attributes defined in source-level metadata with JSR-175 or another framework.
    Thus I don't think there will be any real problem with using whatever future attributes sources become available.

  5. #5
    Join Date
    Nov 2004
    Location
    Hilversum - The Netherlands
    Posts
    1,054

    Default

    Quote Originally Posted by Ben Alex
    We use (in MethodDefinitionAttributes) Spring's org.springframework.metadata.Attributes. As described in the latter's JavaDocs:

    Thus I don't think there will be any real problem with using whatever future attributes sources become available.
    I`m currently developing a project using java 1.5 features. But generics and common attributes don`t mix so I have to use another attribute source. How is the support for 1.5 at the moment? I have just checked the cvs tree for acegi, but haven`t found anything.

  6. #6
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    No, it's not done at present but on the to-do list. If you get time to contribute annotation support, it would be warmly welcomed.

Similar Threads

  1. Hibernate Annotations and Spring
    By musch in forum Data
    Replies: 5
    Last Post: Mar 3rd, 2009, 09:30 AM
  2. transactions, annotations and session facade
    By dvoytenko in forum Architecture
    Replies: 0
    Last Post: Oct 4th, 2005, 11:45 AM
  3. Replies: 0
    Last Post: Aug 23rd, 2005, 02:30 PM
  4. Replies: 2
    Last Post: Jul 13th, 2005, 06:08 PM
  5. Convert Hispacta to annotations
    By jasonab in forum Security
    Replies: 2
    Last Post: Apr 21st, 2005, 06:45 PM

Posting Permissions

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