sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject [sling-org-apache-sling-models-api] 08/11: SLING-5013 add @ProviderType to API classes/interfaces and @ConsumerType to SPI classes/interfaces
Date Tue, 07 Nov 2017 09:55:23 GMT
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.models.api-1.2.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-models-api.git

commit 9b53403f8d337c8e810b472fc15dbb6f87939ca2
Author: Stefan Seifert <sseifert@apache.org>
AuthorDate: Thu Sep 10 11:45:47 2015 +0000

    SLING-5013 add @ProviderType to API classes/interfaces and @ConsumerType to SPI classes/interfaces
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/models/api@1702224
13f79535-47bb-0310-9956-ffa450edef68
---
 .../org/apache/sling/models/factory/InvalidAdaptableException.java     | 3 +++
 src/main/java/org/apache/sling/models/spi/DisposalCallback.java        | 3 +++
 .../java/org/apache/sling/models/spi/DisposalCallbackRegistry.java     | 3 +++
 3 files changed, 9 insertions(+)

diff --git a/src/main/java/org/apache/sling/models/factory/InvalidAdaptableException.java
b/src/main/java/org/apache/sling/models/factory/InvalidAdaptableException.java
index 58e55b9..0f04bd3 100644
--- a/src/main/java/org/apache/sling/models/factory/InvalidAdaptableException.java
+++ b/src/main/java/org/apache/sling/models/factory/InvalidAdaptableException.java
@@ -18,6 +18,8 @@
  */
 package org.apache.sling.models.factory;
 
+import aQute.bnd.annotation.ProviderType;
+
 /**
  * Exception which is triggered whenever a Sling Model could not be
  * instantiated because it could not be adapted from the given adaptable.
@@ -25,6 +27,7 @@ package org.apache.sling.models.factory;
  * @see ModelFactory
  *
  */
+@ProviderType
 public final class InvalidAdaptableException extends RuntimeException {
     private static final long serialVersionUID = -1209301268928038702L;
 
diff --git a/src/main/java/org/apache/sling/models/spi/DisposalCallback.java b/src/main/java/org/apache/sling/models/spi/DisposalCallback.java
index 02007df..bda096b 100644
--- a/src/main/java/org/apache/sling/models/spi/DisposalCallback.java
+++ b/src/main/java/org/apache/sling/models/spi/DisposalCallback.java
@@ -16,10 +16,13 @@
  */
 package org.apache.sling.models.spi;
 
+import aQute.bnd.annotation.ConsumerType;
+
 /**
  * Callback interface which can be implemented by Injectors to perform some action
  * when a created object is destroyed.
  */
+@ConsumerType
 public interface DisposalCallback {
 
     /**
diff --git a/src/main/java/org/apache/sling/models/spi/DisposalCallbackRegistry.java b/src/main/java/org/apache/sling/models/spi/DisposalCallbackRegistry.java
index 6da31be..62f7d02 100644
--- a/src/main/java/org/apache/sling/models/spi/DisposalCallbackRegistry.java
+++ b/src/main/java/org/apache/sling/models/spi/DisposalCallbackRegistry.java
@@ -18,10 +18,13 @@ package org.apache.sling.models.spi;
 
 import javax.annotation.Nonnull;
 
+import aQute.bnd.annotation.ConsumerType;
+
 /**
  * Interface which allows for the registration of DisposalCallback listeners.
  * This interface should not be implemnted by clients.
  */
+@ConsumerType
 public interface DisposalCallbackRegistry {
     
     /**

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <commits@sling.apache.org>.

Mime
View raw message