Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321256 - Require annotation and XML metadata support for ClassExtractionMethod
Summary: Require annotation and XML metadata support for ClassExtractionMethod
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 321254
Blocks:
  Show dependency tree
 
Reported: 2010-07-29 13:53 EDT by David McCann CLA
Modified: 2022-06-09 10:36 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 David McCann CLA 2010-07-29 13:53:08 EDT
We currently have XML metadata support (and will have annotation support) for ClassExtractor, but not ClassExtractionMethod.  

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

    public void setClassExtractionMethodName(String)

The XML metadata could look something like this:

    <java-type name="org.example.Person">
        <xml-class-extraction-method name="getClassForRow" />
    </java-type>

And 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 Eclipse Webmaster CLA 2022-06-09 10:36:21 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink