Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
JDO 3 (3.0)
-
None
-
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)