Community
Participate
Working Groups
Minor enhancement to make subclassing the INstantiationPolicy simpler. While working on the Dynamic Persistence incubator I required the ability to create an entity using a subclass of the InstantiationPolicy which invoked a constructor that passed in the entity's type. To do this I copied the entire body of buildNewInstance and added the type into the array passed in during the constructor invocation. To Do Items - rename from default constructor to constructor - change the constructor lookup to allow the policy to specify the args of the constructor - change the build methods to ask the policy for the Object[] arg values when invoking the constructor or factory - keep the defaults the same assuming zero args
- Make the defaultConstructor: protected Constrcutor constructor;
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink