Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 339377

Summary: Enhancement: Programmatic means of adding mapping to an initialized XMLDescriptor at runtime
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 333603    
Bug Blocks: 339371, 339383    

Description Blaise Doughan CLA 2011-03-09 10:50:04 EST
A mechanism is required to add a mapping to an XMLDescriptor at runtime.  

Design considerations:
- This mechanism needs to be compatible with marshal/unmarshal operations that may be occuring simultaneously with the metadata modifications.
- The API should be consistent with JAXB/MOXy metadata concepts

Future extensions include:
- Modification of a mapping
- Removal of a mapping
Comment 1 Blaise Doughan CLA 2011-03-09 11:17:55 EST
Additional Requirement:
- This feature must also be supported by Dynamic JAXB
Comment 2 Blaise Doughan CLA 2011-03-09 11:24:57 EST
Design Consideration:  The API should be consistent with JAXB/MOXy metadata concepts

The model objects used to read the XML metadata could be leveraged to allow the user to specify JAXB/MOXy metadata at runtime:

    XmlAttribute xmlAttribute = new XmlAttribute();
    xmlAttribute.setJavaAttribute("type");
    xmlAttribute.setType("java.lang.Integer");
Comment 3 Blaise Doughan CLA 2011-05-02 10:35:21 EDT
This behaviour will be covered by the following enhancement:

Bug 343615 - Enhancement: Add ability to refresh JAXBContext based on metadata changes 
https://bugs.eclipse.org/343615
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:25:41 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink