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

Bug 321254

Summary: Require annotation support for ClassExtractionMethod
Product: z_Archived Reporter: David McCann <david.mccann>
Component: EclipselinkAssignee: Project Inbox <eclipselink.foundation-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: douglas.clarke, karenfbutzke
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 321256    

Description David McCann CLA 2010-07-29 13:48:30 EDT
We currently have annotation support for ClassExtractor, but not ClassExtractionMethod.  We will want this support in MOXy (annotation & xml metadata) and should (presumably) have it in foundation as well.

A class extraction method can be set on the InheritancePolicy via this method:

    public void setClassExtractionMethodName(String)

The annotation could look something like the following:

    @Target({TYPE})
    @Retention(RUNTIME)
    public @interface ClassExtractionMethod {
        /**
         * (Required) Defines the name of the class extraction method
         * that should be applied to this entity's descriptor.
         */
        String value(); 
    }
Comment 1 Karen Butzke CLA 2010-07-29 14:06:40 EDT
Not sure if Doug still feels this way, but this was the decision made when supporting ClassExtractor: https://bugs.eclipse.org/bugs/show_bug.cgi?id=211323#c3
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:04:29 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink