You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-commits@db.apache.org by cl...@apache.org on 2005/08/08 23:48:26 UTC
svn commit: r230905 -
/incubator/jdo/trunk/fostore20/src/java/org/apache/jdo/impl/fostore/FOStorePMF.java
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();