jaxb-api icon indicating copy to clipboard operation
jaxb-api copied to clipboard

XmlSeeAlso enhancements

Open Tomas-Kraus opened this issue 17 years ago • 4 comments

I have three enhancement suggestions for @XmlSeeAlso.

1. Allow @XmlSeeAlso to be applied to a package via package-info.java. This will help greatly in decoupling base classes from their subclasses.

2. Check for @XmlSeeAlso on XmlAdapter implementation classes that have been specified via @XmlJavaTypeAdapter. This will also help greatly in decoupling base classes from their subclasses.

3. Allow for specifying an array of package name strings via @XmlSeeAlso. This would work in a similar way as creating a JAXBContext with a list of package names in that the package(s) would be scanned for classes. This one would be a tremendous help in adding runtime flexibility to JAXB when used with JAXWS – extension subclasses could be loaded at runtime that are not available at compile time.

public @interface XmlSeeAlso { Class[] value(); String[] packages(); }

Environment

Operating System: All Platform: All

Affected Versions

[2.2]

Tomas-Kraus avatar Oct 25 '07 10:10 Tomas-Kraus

  • Issue Imported From: https://github.com/javaee/jaxb-v2/issues/437
  • Original Issue Raised By:@glassfishrobot
  • Original Issue Assigned To: @glassfishrobot

Tomas-Kraus avatar Sep 21 '18 15:09 Tomas-Kraus

@glassfishrobot Commented Reported by [email protected]

Tomas-Kraus avatar Oct 25 '07 10:10 Tomas-Kraus

@glassfishrobot Commented Was assigned to snajper

Tomas-Kraus avatar Oct 25 '07 10:10 Tomas-Kraus

@glassfishrobot Commented This issue was imported from java.net JIRA JAXB-437

Tomas-Kraus avatar Apr 24 '17 12:04 Tomas-Kraus