openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allee8...@apache.org
Subject svn commit: r1306636 - in /openjpa/trunk: openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAConfiguration.java openjpa-project/src/doc/manual/ref_guide_conf.xml
Date Wed, 28 Mar 2012 23:01:42 GMT
Author: allee8285
Date: Wed Mar 28 23:01:42 2012
New Revision: 1306636

URL: http://svn.apache.org/viewvc?rev=1306636&view=rev
Log:
OPENJPA-2163 Add SingletonLifecycleEventManager property to interface and documentation.

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAConfiguration.java
    openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_conf.xml

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAConfiguration.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAConfiguration.java?rev=1306636&r1=1306635&r2=1306636&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAConfiguration.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAConfiguration.java
Wed Mar 28 23:01:42 2012
@@ -1738,6 +1738,16 @@ public interface OpenJPAConfiguration
     public void setLifecycleEventManager(String eventMgr);
 
     /**
+     * Returns if lifecycle event manager is a singlton configuration.
+     */
+    public boolean isSingletonLifecycleEventManager();
+
+    /**
+     * Sets the lifecycle event manager singleton state.
+     */
+    public void setSingletonLifecycleEventManager(boolean singleton);
+
+    /**
      * Gets the validation groups for pre-persist
      * 
      * @Since 2.0.0

Modified: openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_conf.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_conf.xml?rev=1306636&r1=1306635&r2=1306636&view=diff
==============================================================================
--- openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_conf.xml (original)
+++ openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_conf.xml Wed Mar 28 23:01:42 2012
@@ -1811,6 +1811,36 @@ long-running application where the initi
 memory and speed optimization over time.
             </para>
         </section>
+        <section id="openjpa.DynamicEnhancementAgent">
+            <title>openjpa.DynamicEnhancementAgent</title>
+            <para> 
+                <emphasis role="bold">Property name: </emphasis>
+                <literal>openjpa.DynamicEnhancementAgent</literal>
+            </para>
+            <para>
+                 <emphasis role="bold">Configuration API: </emphasis>
+                 <ulink url="../javadoc/org/apache/openjpa/conf/OpenJPAConfiguration.html#getDynamicEnhancementAgent()">org.apache.openjpa.conf.OpenJPAConfiguration.getDynamicEnhancementAgent</ulink>
+            </para>
+            <para>
+                <emphasis role="bold">Resource adaptor config property:</emphasis>
+                DynamicEnhancementAgent
+            </para>
+            <para>
+                <emphasis role="bold">Default: </emphasis>
+                <literal>true</literal>
+                
+            </para>
+            <para>
+                <emphasis role="bold">Description:</emphasis>
+                The DynamicEnhancementAgent property controls whether or not
+                OpenJPA will attempt to dynamically load the PCEnhancer 
+                javaagent.
+            </para>
+            <para>
+                See the reference guide for more information 
+                <xref linkend="ref_guide_pc_enhance_dynamic"/>
+            </para>            
+        </section>
         <section id="openjpa.FetchBatchSize">
             <title>
                 openjpa.FetchBatchSize
@@ -3181,36 +3211,6 @@ serious problems.
                 <xref linkend="ref_guide_pc_enhance_unenhanced_types"/>
             </para>
         </section>
-        <section id="openjpa.DynamicEnhancementAgent">
-            <title>openjpa.DynamicEnhancementAgent</title>
-            <para> 
-                <emphasis role="bold">Property name: </emphasis>
-                <literal>openjpa.DynamicEnhancementAgent</literal>
-            </para>
-            <para>
-                 <emphasis role="bold">Configuration API: </emphasis>
-                 <ulink url="../javadoc/org/apache/openjpa/conf/OpenJPAConfiguration.html#getDynamicEnhancementAgent()">org.apache.openjpa.conf.OpenJPAConfiguration.getDynamicEnhancementAgent</ulink>
-            </para>
-            <para>
-                <emphasis role="bold">Resource adaptor config property:</emphasis>
-                DynamicEnhancementAgent
-            </para>
-            <para>
-                <emphasis role="bold">Default: </emphasis>
-                <literal>true</literal>
-                
-            </para>
-            <para>
-                <emphasis role="bold">Description:</emphasis>
-                The DynamicEnhancementAgent property controls whether or not
-                OpenJPA will attempt to dynamically load the PCEnhancer 
-                javaagent.
-            </para>
-            <para>
-                See the reference guide for more information 
-                <xref linkend="ref_guide_pc_enhance_dynamic"/>
-            </para>            
-        </section>
         <section id="openjpa.SavepointManager">
             <title>
                 openjpa.SavepointManager
@@ -3279,6 +3279,32 @@ system sequence. See <xref linkend="ref_
 information.
             </para>
         </section>
+        <section id="openjpa.SingletonLifecycleEventManager">
+            <title>openjpa.SingletonLifecycleEventManager</title>
+            <para>
+                <emphasis role="bold">Property name: </emphasis>
+                <literal>openjpa.SingletonLifecycleEventManager</literal>
+            </para>
+            <para>
+                 <emphasis role="bold">Configuration API: </emphasis>
+                 <ulink url="../javadoc/org/apache/openjpa/conf/OpenJPAConfiguration.html#isSingletonLifecycleEventManager()">org.apache.openjpa.conf.OpenJPAConfiguration.isSingletonLifecycleEventManager</ulink>
+            </para>
+            <para>
+                <emphasis role="bold">Resource adaptor config property:</emphasis>
+                SingletonLifecycleEventManager
+            </para>
+            <para>
+                <emphasis role="bold">Default: </emphasis>
+                <literal>false</literal>                
+            </para>
+            <para>
+                <emphasis role="bold">Description:</emphasis>
+                This property controls whether each EntityManager has its own life cycle
event manager.
+                By default, each EntityManager only fires events to the registered listeners
to the entities
+                it manages. If the life cycle event manager is a singleton, events will be
fired to listeners
+                registered to all instances of EntityManager in the same persistence unit.
+            </para>
+        </section>
         <section id="openjpa.Specification">
             <title>
                 openjpa.Specification



Mime
View raw message