This is an automated email from the ASF dual-hosted git repository.

radu pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-java.git


The following commit(s) were added to refs/heads/master by this push:
     new cb8e364  SLING-10448 - The Java Script Engine is not made available 
any more
cb8e364 is described below

commit cb8e3643434b7b57c99caa111bd8df5012170e41
Author: Radu Cotescu <[email protected]>
AuthorDate: Wed Jun 2 18:08:36 2021 +0200

    SLING-10448 - The Java Script Engine is not made available any more
    
    * re-added the registration properties (SLING-6643)
---
 .../org/apache/sling/scripting/java/impl/JavaScriptEngineFactory.java   | 2 ++
 1 file changed, 2 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 7606904..a59ac8b 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
@@ -65,6 +65,8 @@ import org.slf4j.LoggerFactory;
 @Component(service={javax.script.ScriptEngineFactory.class, 
ResourceChangeListener.class},
            property={
                    "extensions=" + JavaScriptEngineFactory.SCRIPT_TYPE,
+                   "names=java",
+                   "names=Java",
                    Constants.SERVICE_VENDOR + "=The Apache Software 
Foundation",
                    Constants.SERVICE_DESCRIPTION + "=" + 
JavaScriptEngineFactory.DESCRIPTION,
                    ResourceChangeListener.CHANGES + "=CHANGED",

Reply via email to