Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-668

Extend PersistenceManageFactory to find a Class

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • JDO 3 (3.0)
    • None
    • api, specification, tck
    • None

    Description

      The meta-data-related methods in PersistenceManagerFactory work with Strings (fully qualified class-names) instead of classes. This includes the new method requested in JDO-667.

      However, to actually do sth. (e.g. create a new query or get an extent), a java.lang.Class is required. In some environments (e.g. OSGi), class-loading is not trivial and it is therefore not so easy to get the right java.lang.Class (i.e. the same as used by the JDO implementation) for a certain class-name.

      Since the JDO implementation needs to be able to load the right classes, anyway, the class-loading must already be solved somehow (e.g. by an OSGi-aware class-loader). It should therefore be easy to expose the method used by the JDO implementation for class-loading.

      For these reasons, I kindly request the following new method in PersistenceManagerFactory:

      Class<?> getManagedClass(String className)

      Attachments

        Activity

          People

            Unassigned Unassigned
            nlmarco Marco
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: