tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkuhn...@apache.org
Subject svn commit: r539774 - in /tapestry/tapestry4/trunk/tapestry-framework/src: descriptor/META-INF/tapestry.render.xml java/org/apache/tapestry/services/impl/ComponentEventConnectionWorker.java
Date Sat, 19 May 2007 16:51:49 GMT
Author: jkuhnert
Date: Sat May 19 09:51:48 2007
New Revision: 539774

URL: http://svn.apache.org/viewvc?view=rev&rev=539774
Log:
Yourkit profiling.

Modified:
    tapestry/tapestry4/trunk/tapestry-framework/src/descriptor/META-INF/tapestry.render.xml
    tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/services/impl/ComponentEventConnectionWorker.java

Modified: tapestry/tapestry4/trunk/tapestry-framework/src/descriptor/META-INF/tapestry.render.xml
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/descriptor/META-INF/tapestry.render.xml?view=diff&rev=539774&r1=539773&r2=539774
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/descriptor/META-INF/tapestry.render.xml
(original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/descriptor/META-INF/tapestry.render.xml
Sat May 19 09:51:48 2007
@@ -41,7 +41,7 @@
     Wires javascript events to components, adds javascript contributions to 
     render.
     
-    <invoke-factory model="threaded">
+    <invoke-factory model="pooled">
       <construct class="org.apache.tapestry.services.impl.ComponentEventConnectionWorker">
         <set-service property="eventInvoker" service-id="tapestry.event.EventInvoker"/>
         <set-service property="eventEngine" service-id="tapestry.event.DirectEvent"/>

Modified: tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/services/impl/ComponentEventConnectionWorker.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/services/impl/ComponentEventConnectionWorker.java?view=diff&rev=539774&r1=539773&r2=539774
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/services/impl/ComponentEventConnectionWorker.java
(original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/services/impl/ComponentEventConnectionWorker.java
Sat May 19 09:51:48 2007
@@ -14,6 +14,7 @@
 package org.apache.tapestry.services.impl;
 
 import org.apache.hivemind.ClassResolver;
+import org.apache.hivemind.PoolManageable;
 import org.apache.hivemind.Resource;
 import org.apache.hivemind.util.ClasspathResource;
 import org.apache.tapestry.*;
@@ -38,7 +39,7 @@
  * 
  * @author jkuhnert
  */
-public class ComponentEventConnectionWorker implements ComponentRenderWorker
+public class ComponentEventConnectionWorker implements ComponentRenderWorker, PoolManageable
 {
     /** Stored in {@link IRequestCycle} with associated forms. */
     public static final String FORM_NAME_LIST =  "org.apache.tapestry.services.impl.ComponentEventConnectionFormNames-";
@@ -68,9 +69,18 @@
     
     // For event connections referencing forms that have not 
     // been rendered yet.
-    private Map _deferredFormConnections = new HashMap();
-    
-    /** 
+    private Map _deferredFormConnections = new HashMap(24);
+
+    public void activateService()
+    {
+        _deferredFormConnections.clear();
+    }
+
+    public void passivateService()
+    {
+    }
+
+    /**
      * {@inheritDoc}
      */
     public void renderComponent(IRequestCycle cycle, IComponent component)



Mime
View raw message