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

Bug 360249

Summary: Add support equivalent to JAXB RI's IDResolver
Product: z_Archived Reporter: Rick Barkhouse <rick.barkhouse>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: blaise.doughan
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
URL: http://wiki.eclipse.org/EclipseLink/Development/360249
Whiteboard:
Bug Depends on:    
Bug Blocks: 359251    
Attachments:
Description Flags
Prototype
none
Prototype
none
Patch - code changes
none
Patch - test changes
none
Patch - code changes
none
Patch - test changes
none
Patch - test changes
none
Patch - code changes
none
Patch - test changes
none
Patch - code changes
none
Patch - test changes
none
Patch - code changes none

Description Rick Barkhouse CLA 2011-10-07 11:18:19 EDT
The Sun JAXB implementation includes the concept of an IDResolver, which allows users to override the ID/IDREF processing of the JAXB runtime,

IDResolver is an interface for the user to implement, containing the following methods:

public abstract Callable<?> resolve(String id, Class targetType)
public abstract void bind(String id, Object obj)
public void startDocument(ValidationEventHandler eventHandler)
public void endDocument() throws SAXException

Implementations of this interface are used by the Unmarshaller to resolve and bind IDs.
Comment 1 Rick Barkhouse CLA 2011-10-07 12:50:04 EDT
Design documemt:
http://wiki.eclipse.org/EclipseLink/Development/360249
Comment 2 Rick Barkhouse CLA 2011-10-17 15:50:29 EDT
Created attachment 205369 [details]
Prototype
Comment 3 Rick Barkhouse CLA 2011-10-21 15:28:06 EDT
Created attachment 205753 [details]
Prototype
Comment 4 Rick Barkhouse CLA 2011-10-26 15:45:44 EDT
Created attachment 206029 [details]
Patch - code changes
Comment 5 Rick Barkhouse CLA 2011-10-26 15:45:59 EDT
Created attachment 206030 [details]
Patch - test changes
Comment 6 Rick Barkhouse CLA 2011-10-31 13:44:49 EDT
Created attachment 206229 [details]
Patch - code changes
Comment 7 Rick Barkhouse CLA 2011-10-31 13:45:03 EDT
Created attachment 206230 [details]
Patch - test changes
Comment 8 Rick Barkhouse CLA 2011-11-01 14:50:54 EDT
Created attachment 206286 [details]
Patch - test changes
Comment 9 Rick Barkhouse CLA 2011-11-01 14:51:10 EDT
Created attachment 206287 [details]
Patch - code changes
Comment 10 Rick Barkhouse CLA 2011-11-02 14:37:39 EDT
Created attachment 206360 [details]
Patch - test changes
Comment 11 Rick Barkhouse CLA 2011-11-02 14:37:54 EDT
Created attachment 206361 [details]
Patch - code changes
Comment 12 Rick Barkhouse CLA 2011-11-02 14:49:12 EDT
Created attachment 206364 [details]
Patch - test changes
Comment 13 Rick Barkhouse CLA 2011-11-02 14:49:24 EDT
Created attachment 206365 [details]
Patch - code changes
Comment 14 Rick Barkhouse CLA 2011-11-07 10:48:22 EST
Completed, reviewed by bdoughan.
Comment 15 Eclipse Webmaster CLA 2022-06-09 10:36:17 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink