This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.scripting.java-2.0.10 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-java.git
commit 76e604bc86c7d442fc1d7b07459cd10c2474285a Author: Felix Meschberger <fmesc...@apache.org> AuthorDate: Wed Feb 9 16:26:53 2011 +0000 SLING-1975 Declare multi-threading behaviour of script engines: JSP: Stateless Java: Stateless JavaScript (Rhino): Multithreaded git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/scripting/java@1068960 13f79535-47bb-0310-9956-ffa450edef68 --- .../sling/scripting/java/impl/JavaScriptEngineFactory.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/org/apache/sling/scripting/java/impl/JavaScriptEngineFactory.java b/src/main/java/org/apache/sling/scripting/java/impl/JavaScriptEngineFactory.java index c45944f..ea886fe 100644 --- a/src/main/java/org/apache/sling/scripting/java/impl/JavaScriptEngineFactory.java +++ b/src/main/java/org/apache/sling/scripting/java/impl/JavaScriptEngineFactory.java @@ -124,7 +124,19 @@ public class JavaScriptEngineFactory } /** + * @see javax.script.ScriptEngineFactory#getParameter(String) + */ + public Object getParameter(String name) { + if ("THREADING".equals(name)) { + return "STATELESS”"; + } + + return super.getParameter(name); + } + + /** * Activate this engine + * * @param componentContext */ @SuppressWarnings("unchecked") -- To stop receiving notification emails like this one, please contact "commits@sling.apache.org" <commits@sling.apache.org>.