You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2021/10/31 09:46:00 UTC

[sling-org-apache-sling-api] branch master updated: SLING-10897 : Deprecate events for adapter factory changes

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

cziegeler 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 8477f30  SLING-10897 : Deprecate events for adapter factory changes
8477f30 is described below

commit 8477f3056993845b653e571020a90a1d9610da1b
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Sun Oct 31 10:45:46 2021 +0100

    SLING-10897 : Deprecate events for adapter factory changes
---
 src/main/java/org/apache/sling/api/SlingConstants.java | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/api/SlingConstants.java b/src/main/java/org/apache/sling/api/SlingConstants.java
index 53bd401..275ef21 100644
--- a/src/main/java/org/apache/sling/api/SlingConstants.java
+++ b/src/main/java/org/apache/sling/api/SlingConstants.java
@@ -374,7 +374,10 @@ public class SlingConstants {
      * The event contains at least the {@link #PROPERTY_ADAPTABLE_CLASSES},
      * and {@link #PROPERTY_ADAPTER_CLASSES} poperties.
      * @since 2.0.6 (Sling API Bundle 2.0.6)
+     *
+     * @deprecated Use a service listener listening for service removed events for {@code org.apache.sling.adapter.Adaption}.
      */
+    @Deprecated
     public static final String TOPIC_ADAPTER_FACTORY_ADDED = "org/apache/sling/api/adapter/AdapterFactory/ADDED";
 
     /**
@@ -382,7 +385,10 @@ public class SlingConstants {
      * The event contains at least the {@link #PROPERTY_ADAPTABLE_CLASSES},
      * and {@link #PROPERTY_ADAPTER_CLASSES} poperties.
      * @since 2.0.6 (Sling API Bundle 2.0.6)
+     *
+     * @deprecated Use a service listener listening for service removed events for {@code org.apache.sling.adapter.Adaption}.
      */
+    @Deprecated
     public static final String TOPIC_ADAPTER_FACTORY_REMOVED = "org/apache/sling/api/adapter/AdapterFactory/REMOVED";
 
     /**
@@ -390,6 +396,8 @@ public class SlingConstants {
      * classes which can be adapted by this adapter factory (value is
      * "adaptables"). The type of the value is a string array.
      * @since 2.0.6 (Sling API Bundle 2.0.6)
+     *
+     * @deprecated Use a service listener listening for service removed events for {@code org.apache.sling.adapter.Adaption}.
      */
     public static final String PROPERTY_ADAPTABLE_CLASSES = "adaptables";
 
@@ -397,7 +405,8 @@ public class SlingConstants {
      * The event property listing the fully qualified names of
      * classes to which this factory can adapt adaptables (value is "adapters").
      * The type of the value is a string array.
-     * @since 2.0.6 (Sling API Bundle 2.0.6)
+     *
+     * @deprecated Use a service listener listening for service removed events for {@code org.apache.sling.adapter.Adaption}.
      */
     public static final String PROPERTY_ADAPTER_CLASSES = "adapters";