cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgo...@apache.org
Subject svn commit: rev 57069 - cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/java
Date Tue, 09 Nov 2004 18:24:53 GMT
Author: rgoers
Date: Tue Nov  9 10:24:52 2004
New Revision: 57069

Modified:
   cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/java/JavaInterpreter.java
Log:
Make initialize thread safe


Modified: cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/java/JavaInterpreter.java
==============================================================================
--- cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/java/JavaInterpreter.java
(original)
+++ cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/java/JavaInterpreter.java
Tue Nov  9 10:24:52 2004
@@ -84,8 +84,11 @@
             continuationclassloader.addIncludeClass(includes[i].getAttribute("class"));
     }
 
-    public void initialize() throws Exception {
-        
+    public synchronized void initialize() throws Exception {
+
+        if (initialized) {
+            return;
+        }
         if (getLogger().isDebugEnabled())
             getLogger().debug("initialize java flow interpreter");
 

Mime
View raw message