You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2019/12/22 08:25:09 UTC

[sling-org-apache-sling-api] branch issue/SLING-5720 created (now 748f45d)

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

olli pushed a change to branch issue/SLING-5720
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-api.git.


      at 748f45d  SLING-5720 ScriptEngineManagerFactory is not updating ScriptEngineFactory's cached service properties on modification

This branch includes the following new commits:

     new 748f45d  SLING-5720 ScriptEngineManagerFactory is not updating ScriptEngineFactory's cached service properties on modification

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[sling-org-apache-sling-api] 01/01: SLING-5720 ScriptEngineManagerFactory is not updating ScriptEngineFactory's cached service properties on modification

Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

olli pushed a commit to branch issue/SLING-5720
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-api.git

commit 748f45d7a046f6f759463e741177b3f2ddf9d793
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Sun Dec 22 09:22:56 2019 +0100

    SLING-5720 ScriptEngineManagerFactory is not updating ScriptEngineFactory's cached service properties on modification
    
    Add new topic javax/script/ScriptEngineFactory/UPDATED
---
 pom.xml                                                      |  2 +-
 .../org/apache/sling/api/scripting/SlingScriptConstants.java | 12 ++++++++++++
 .../java/org/apache/sling/api/scripting/package-info.java    |  2 +-
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index a424f73..e05a2d7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
     </parent>
 
     <artifactId>org.apache.sling.api</artifactId>
-    <version>2.21.1-SNAPSHOT</version>
+    <version>2.22.0-SNAPSHOT</version>
 
     <name>Apache Sling API</name>
     <description>
diff --git a/src/main/java/org/apache/sling/api/scripting/SlingScriptConstants.java b/src/main/java/org/apache/sling/api/scripting/SlingScriptConstants.java
index 4fc447d..0ccff34 100644
--- a/src/main/java/org/apache/sling/api/scripting/SlingScriptConstants.java
+++ b/src/main/java/org/apache/sling/api/scripting/SlingScriptConstants.java
@@ -68,6 +68,18 @@ public class SlingScriptConstants {
     public static final String TOPIC_SCRIPT_ENGINE_FACTORY_REMOVED = "javax/script/ScriptEngineFactory/REMOVED";
 
     /**
+     * The topic for the OSGi event which is sent when a script engine factory has been updated.
+     * The event contains at least the {@link #PROPERTY_SCRIPT_ENGINE_FACTORY_NAME},
+     * {@link #PROPERTY_SCRIPT_ENGINE_FACTORY_VERSION},
+     * {@link #PROPERTY_SCRIPT_ENGINE_FACTORY_EXTENSIONS},
+     * {@link #PROPERTY_SCRIPT_ENGINE_FACTORY_LANGUAGE_NAME},
+     * {@link #PROPERTY_SCRIPT_ENGINE_FACTORY_LANGUAGE_VERSION},
+     * and {@link #PROPERTY_SCRIPT_ENGINE_FACTORY_MIME_TYPES} properties.
+     * @since 2.5.0 (Sling API Bundle 2.22.0)
+     */
+    public static final String TOPIC_SCRIPT_ENGINE_FACTORY_UPDATED = "javax/script/ScriptEngineFactory/UPDATED";
+
+    /**
      * The event property listing the script engine factory name. The value is a string.
      * @since 2.0.6 (Sling API Bundle 2.0.6)
      */
diff --git a/src/main/java/org/apache/sling/api/scripting/package-info.java b/src/main/java/org/apache/sling/api/scripting/package-info.java
index 9e31fd1..e43eb81 100644
--- a/src/main/java/org/apache/sling/api/scripting/package-info.java
+++ b/src/main/java/org/apache/sling/api/scripting/package-info.java
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-@Version("2.4.0")
+@Version("2.5.0")
 package org.apache.sling.api.scripting;
 
 import org.osgi.annotation.versioning.Version;