geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r925082 - /geronimo/specs/trunk/geronimo-jpa_2.0_spec/src/main/java/javax/persistence/spi/PersistenceProviderResolverHolder.java
Date Fri, 19 Mar 2010 02:52:53 GMT
Author: dwoods
Date: Fri Mar 19 02:52:53 2010
New Revision: 925082

URL: http://svn.apache.org/viewvc?rev=925082&view=rev
Log:
GERONIMO-5178 Add back in the code to add the found providers into the providerCache

Modified:
    geronimo/specs/trunk/geronimo-jpa_2.0_spec/src/main/java/javax/persistence/spi/PersistenceProviderResolverHolder.java

Modified: geronimo/specs/trunk/geronimo-jpa_2.0_spec/src/main/java/javax/persistence/spi/PersistenceProviderResolverHolder.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jpa_2.0_spec/src/main/java/javax/persistence/spi/PersistenceProviderResolverHolder.java?rev=925082&r1=925081&r2=925082&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-jpa_2.0_spec/src/main/java/javax/persistence/spi/PersistenceProviderResolverHolder.java
(original)
+++ geronimo/specs/trunk/geronimo-jpa_2.0_spec/src/main/java/javax/persistence/spi/PersistenceProviderResolverHolder.java
Fri Mar 19 02:52:53 2010
@@ -109,6 +109,8 @@ public class PersistenceProviderResolver
                     for (Object o : serviceProviders) {
                         providers.add((PersistenceProvider)o);
                     }
+                    // cache the discovered providers
+                    providerCache.put(cl, providers);
                 } catch (ClassNotFoundException e) {
                     throw new PersistenceException("Failed to load provider from META-INF/services",
e);
                 } catch (InstantiationException e) {



Mime
View raw message