Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339377 - Enhancement: Programmatic means of adding mapping to an initialized XMLDescriptor at runtime
Summary: Enhancement: Programmatic means of adding mapping to an initialized XMLDescr...
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 333603
Blocks: 339371 339383
  Show dependency tree
 
Reported: 2011-03-09 10:50 EST by Blaise Doughan CLA
Modified: 2022-06-09 10:25 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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