Details
-
Type: New Feature
-
Status: Closed
-
Resolution: Incomplete
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
JDK version and platform:1.3 and 1.5+
Description
1. Make PreprocessingConverter capable of
- catching class/field XML tag formation
- managing list of PreprocessingListener and passing there tag events
2. make Type2AttribListener which adds type attribute with class name
3. make Annotation2AttribListener which adds attribute from Java5 annotations
Implementation:
- extension package, no current code change needed
- 1,2 JRE 1.3;
- Annotation2AttribListener JRE 1.5+
In wish list
- add events "In Begginig of tag body" "In End of tag body" ( say, for XML comments)
- optionally exclude from attributes some of annotaions: XStream control, J2EE, user defined. Or use permitted annotations list. (Configuration on level Annotation2AttribListener)
The prove of concept:
http://javasa.org/~suns/demos/AnnotationTest/
Extension library:
http://javasa.org/~suns/demos/J2XmlExpansion/
URLs no longer valid.