You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ra...@apache.org on 2018/12/13 16:47:04 UTC

[sling-org-apache-sling-api] branch master updated: SLING-8170 - Allow Sling servlets to declare a resource super type

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-api.git


The following commit(s) were added to refs/heads/master by this push:
     new 32d6ca4  SLING-8170 - Allow Sling servlets to declare a resource super type
32d6ca4 is described below

commit 32d6ca4a23d4b730c8e9917d777df256847c8927
Author: Radu Cotescu <17...@users.noreply.github.com>
AuthorDate: Thu Dec 13 17:46:59 2018 +0100

    SLING-8170 - Allow Sling servlets to declare a resource super type
---
 .../apache/sling/api/servlets/ServletResolverConstants.java   | 11 +++++++++++
 src/main/java/org/apache/sling/api/servlets/package-info.java |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/api/servlets/ServletResolverConstants.java b/src/main/java/org/apache/sling/api/servlets/ServletResolverConstants.java
index 9ce3d08..b1caca6 100644
--- a/src/main/java/org/apache/sling/api/servlets/ServletResolverConstants.java
+++ b/src/main/java/org/apache/sling/api/servlets/ServletResolverConstants.java
@@ -64,6 +64,17 @@ public final class ServletResolverConstants {
     public static final String SLING_SERVLET_RESOURCE_TYPES = "sling.servlet.resourceTypes";
 
     /**
+     * The name of the service registration property of a servlet registered as
+     * a service containing the resource super type supported by the servlet (value
+     * is "sling.servlet.resourceSuperType").
+     * <p>
+     * The type of this property is a String denoting the resource super type. This
+     * property is ignored if the {@link #SLING_SERVLET_RESOURCE_TYPES} property is
+     * not set. Otherwise this property is optional and ignored if not set.
+     */
+    public static final String SLING_SERVLET_RESOURCE_SUPER_TYPE = "sling.servlet.resourceSuperType";
+
+    /**
      * <p>
      * The name of the service registration property of a servlet registered as
      * a service providing the prefix/index to be used to register this servlet.
diff --git a/src/main/java/org/apache/sling/api/servlets/package-info.java b/src/main/java/org/apache/sling/api/servlets/package-info.java
index b018388..bb2595a 100644
--- a/src/main/java/org/apache/sling/api/servlets/package-info.java
+++ b/src/main/java/org/apache/sling/api/servlets/package-info.java
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-@Version("2.2.1")
+@Version("2.3.0")
 package org.apache.sling.api.servlets;
 
 import org.osgi.annotation.versioning.Version;