db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r230905 - /incubator/jdo/trunk/fostore20/src/java/org/apache/jdo/impl/fostore/FOStorePMF.java
Date Mon, 08 Aug 2005 21:48:26 GMT
Author: clr
Date: Mon Aug  8 14:48:24 2005
New Revision: 230905

URL: http://svn.apache.org/viewcvs?rev=230905&view=rev
Log:
Added a hack implementation of getPersistenceManagerFactory(Map) so tests run with latest
API20 jar.

Modified:
    incubator/jdo/trunk/fostore20/src/java/org/apache/jdo/impl/fostore/FOStorePMF.java

Modified: incubator/jdo/trunk/fostore20/src/java/org/apache/jdo/impl/fostore/FOStorePMF.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/fostore20/src/java/org/apache/jdo/impl/fostore/FOStorePMF.java?rev=230905&r1=230904&r2=230905&view=diff
==============================================================================
--- incubator/jdo/trunk/fostore20/src/java/org/apache/jdo/impl/fostore/FOStorePMF.java (original)
+++ incubator/jdo/trunk/fostore20/src/java/org/apache/jdo/impl/fostore/FOStorePMF.java Mon
Aug  8 14:48:24 2005
@@ -21,6 +21,7 @@
 import java.security.PrivilegedAction;
 import java.util.Enumeration;
 import java.util.HashMap;
+import java.util.Map;
 import java.util.Properties;
 import java.util.WeakHashMap;
 
@@ -788,7 +789,16 @@
     protected static HashMap hashMapByFilteredProperties = new HashMap();
     
     /** 
-     * Construct a Properties instance from the given Properties.  Only
+     * This is a hack until a proper implementation of the method
+     * can be done.
+     */
+    public static PersistenceManagerFactoryImpl 
+            getPersistenceManagerFactory (Map props) {
+        return getPersistenceManagerFactory((Properties) props);
+    }
+    
+    /** 
+     * Construct a PersistenceManagerFactory instance from the given Properties.  Only
      * those property entries recognized by this implementation will be 
      * stored in the internal Properties instance.
      *
@@ -797,6 +807,7 @@
      * properties are considered when trying to find a match.
      *
      * <P>This method cannot be implemented by the superclass because 
+     * it doesn't have any information about the implementation.
      */
     public static PersistenceManagerFactoryImpl getPersistenceManagerFactory (Properties
props) {
         initPropsAccessors();



Mime
View raw message