Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333683 - Enhancement: Add annotations to specify methods for lifecycle events
Summary: Enhancement: Add annotations to specify methods for lifecycle events
Status: NEW
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:
Blocks: 333681
  Show dependency tree
 
Reported: 2011-01-06 13:41 EST by Blaise Doughan CLA
Modified: 2022-06-09 10:26 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-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