A basic implementation of a ClassLoaderResolver for JDO. A ClassLoaderResolver provides a series of methods for resolving classes from their names. It supports up to 3 class loaders.
JDO2 Spec section 12.5
The class loaders will be used in this order:
The loader that loaded the class or instance referred to in the API that caused this class to be loaded.
In case of query, this is the loader of the candidate class, or the loader of the object passed to the newQuery
In case of navigation from a persistent instance, this is the loader of the class of the instance.
In the case of getExtent with subclasses, this is the loader of the candidate class.
In the case of getObjectById, this is the loader of the object id instance.
Other cases do not have an explicit loader.
The loader returned in the current context by Thread.getContextClassLoader().
The loader returned by Thread.getContextClassLoader() at the time of PersistenceManagerFactory.getPersistenceManager().
The loader registered for dynamically creating and loading classes at runtime.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.