openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awh...@apache.org
Subject svn commit: r487382 - /incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java
Date Thu, 14 Dec 2006 23:07:20 GMT
Author: awhite
Date: Thu Dec 14 15:07:19 2006
New Revision: 487382

URL: http://svn.apache.org/viewvc?view=rev&rev=487382
Log:
Making loading of build-time generated proxies overridable by subclasses.


Modified:
    incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java

Modified: incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java?view=diff&rev=487382&r1=487381&r2=487382
==============================================================================
--- incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java
(original)
+++ incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java
Thu Dec 14 15:07:19 2006
@@ -421,7 +421,7 @@
      * Load the proxy class generated at build time for the given type,
      * returning null if none exists.
      */
-    private static Class loadBuildTimeProxy(Class type, ClassLoader loader) {
+    protected Class loadBuildTimeProxy(Class type, ClassLoader loader) {
         try {
             return Class.forName(getProxyClassName(type, false), true, loader);
         } catch (Throwable t) {
@@ -1569,8 +1569,8 @@
         BCClass bc;
         for (int i = 0; i < types.size(); i++) {
             cls = Class.forName((String) types.get(i));
-            if (loadBuildTimeProxy(cls, getMostDerivedLoader(cls, Proxy.class))
-                != null)
+            if (mgr.loadBuildTimeProxy(cls, getMostDerivedLoader(cls, 
+                Proxy.class)) != null)
                 continue;
 
             if (Collection.class.isAssignableFrom(cls))



Mime
View raw message