View Full Version : Annotations
shinzui
Nov 24th, 2004, 12:27 PM
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.
Rod Johnson
Nov 25th, 2004, 02:50 AM
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.
shinzui
Nov 25th, 2004, 03:11 AM
Yes, I already saw the spring annotation stuff and I was wondering if the acegi security system is also going to leverage annotations.
Ben Alex
Nov 28th, 2004, 06:22 PM
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.
Alarmnummer
Feb 7th, 2005, 02:05 PM
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.
Ben Alex
Feb 10th, 2005, 01:15 AM
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.
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.