Return-Path: Delivered-To: apmail-db-jdo-commits-archive@www.apache.org Received: (qmail 38223 invoked from network); 8 Aug 2005 21:48:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Aug 2005 21:48:28 -0000 Received: (qmail 51518 invoked by uid 500); 8 Aug 2005 21:48:27 -0000 Mailing-List: contact jdo-commits-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-commits@db.apache.org Received: (qmail 51505 invoked by uid 99); 8 Aug 2005 21:48:27 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 08 Aug 2005 14:48:27 -0700 Received: (qmail 38220 invoked by uid 65534); 8 Aug 2005 21:48:27 -0000 Message-ID: <20050808214827.38219.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: jdo-commits@db.apache.org From: clr@apache.org X-Mailer: svnmailer-1.0.3 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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. * *

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();