openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r440721 - /incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProviderExtension.java
Date Wed, 06 Sep 2006 14:23:28 GMT
Author: ppoddar
Date: Wed Sep  6 07:23:28 2006
New Revision: 440721

URL: http://svn.apache.org/viewvc?view=rev&rev=440721
Log:
An extension mechanism for PersistenceProvider to supply their own Configuration Provider
and EntityManagerFactory. This is a tentative/interim solution and likely to be replaced
once we move to ProductDerivation based extension framework.

Added:
    incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProviderExtension.java

Added: incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProviderExtension.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProviderExtension.java?view=auto&rev=440721
==============================================================================
--- incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProviderExtension.java
(added)
+++ incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProviderExtension.java
Wed Sep  6 07:23:28 2006
@@ -0,0 +1,27 @@
+package org.apache.openjpa.persistence;
+
+import org.apache.openjpa.kernel.BrokerFactory;
+
+/**
+ * Allows the Persistence Provider to be supply their own Configuration 
+ * Provider and EntityManagerFactory.
+ * 
+ * @author Pinaki Poddar
+ * @since 0.4.1
+ * @nojavadoc
+ */
+public interface PersistenceProviderExtension {
+	/**
+	 * Gets the Configuration Provider implementation for this receiver.
+	 * 
+	 */
+	public ConfigurationProviderImpl newConfigurationProviderImpl();
+	
+	/**
+	 * Gets the EntityManagerFactory given a Broker Factory.
+	 * @param factory
+
+	 */
+	public OpenJPAEntityManagerFactory toEntityManagerFactory(BrokerFactory 
+		factory);
+}



Mime
View raw message