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

Bug 333683

Summary: Enhancement: Add annotations to specify methods for lifecycle events
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 333681    

Description Blaise Doughan CLA 2011-01-06 13:41:53 EST
JAXB has reserved methods in order to capture lifecycle events.  In a means similar to JPA, annotations should be provided to make these event methods configurable.  Such as:

      @XmlBeforeUnmarshal
      public void preUnmarshal(Unmarshaller, Object parent);

      @XmlAfterUnmarshal
      public void postUnmarshal(Unmarshaller, Object parent);

      @XmlBeforeMarshal
      public boolean preMarshal(Marshaller);

      @XmlAfterMarshal
      public void postMarshal(Marshaller);
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:17:07 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:26:14 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink