[ 
https://issues.apache.org/jira/browse/JDO-607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185730#comment-13185730
 ] 

Craig L Russell commented on JDO-607:
-------------------------------------

The suggested approach is fundamentally broken.

A new approach is needed, specifically to define a new interface, 
PersistenceManagerFactoryService with two methods: 

createPersistenceManagerFactory(Map) 
createPersistenceManagerFactory(Map, Map)

The interface would be implemented by the JDO implementation and a reference to 
the service would go into the implementation jar.


                
> Require no-args constructor for PMF implementations and add static methods to 
> PMF interface
> -------------------------------------------------------------------------------------------
>
>                 Key: JDO-607
>                 URL: https://issues.apache.org/jira/browse/JDO-607
>             Project: JDO
>          Issue Type: New Feature
>          Components: api
>    Affects Versions: JDO 2 maintenance release 1 (2.1)
>            Reporter: Craig L Russell
>            Assignee: Craig L Russell
>             Fix For: JDO 3 maintenance release 1 (3.1)
>
>         Attachments: jdo-607.patch, jdo-607.patch
>
>
> In order to use Java 6 ServiceLoader to instantiate PMF, the class needs to 
> implement a no-args constructor, and the PMF interface needs to define the 
> methods that are currently static (and therefore not defined in the 
> interface). 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to