incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r1068961 - /sling/trunk/bundles/scripting/javascript/src/main/java/org/apache/sling/scripting/javascript/internal/RhinoJavaScriptEngineFactory.java
Date Wed, 09 Feb 2011 16:26:58 GMT
Author: fmeschbe
Date: Wed Feb  9 16:26:57 2011
New Revision: 1068961

URL: http://svn.apache.org/viewvc?rev=1068961&view=rev
Log:
SLING-1975 Declare multi-threading behaviour of script engines:

   JSP: Stateless
   Java: Stateless
   JavaScript (Rhino): Multithreaded

Modified:
    sling/trunk/bundles/scripting/javascript/src/main/java/org/apache/sling/scripting/javascript/internal/RhinoJavaScriptEngineFactory.java

Modified: sling/trunk/bundles/scripting/javascript/src/main/java/org/apache/sling/scripting/javascript/internal/RhinoJavaScriptEngineFactory.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/scripting/javascript/src/main/java/org/apache/sling/scripting/javascript/internal/RhinoJavaScriptEngineFactory.java?rev=1068961&r1=1068960&r2=1068961&view=diff
==============================================================================
--- sling/trunk/bundles/scripting/javascript/src/main/java/org/apache/sling/scripting/javascript/internal/RhinoJavaScriptEngineFactory.java
(original)
+++ sling/trunk/bundles/scripting/javascript/src/main/java/org/apache/sling/scripting/javascript/internal/RhinoJavaScriptEngineFactory.java
Wed Feb  9 16:26:57 2011
@@ -100,6 +100,14 @@ public class RhinoJavaScriptEngineFactor
         return languageVersion;
     }
 
+    public Object getParameter(String name) {
+        if ("THREADING".equals(name)) {
+            return "MULTITHREADED”";
+        }
+
+        return super.getParameter(name);
+    }
+
     public Scriptable getScope() {
         return getRootScope();
     }



Mime
View raw message