You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:55:47 UTC

[sling-org-apache-sling-mom] 03/06: SLING-5645 added provider types to apis where applicable

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

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

commit d8f52d3ed92ffb139b09ec1d370accdb38e106d9
Author: Ian Boston <ie...@apache.org>
AuthorDate: Mon Oct 3 16:17:56 2016 +0000

    SLING-5645 added provider types to apis where applicable
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/commons/mom/api@1763185 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml                                               | 6 ++++++
 src/main/java/org/apache/sling/mom/MessageFilter.java | 3 +++
 src/main/java/org/apache/sling/mom/QueueManager.java  | 3 +++
 src/main/java/org/apache/sling/mom/QueueReader.java   | 3 +++
 src/main/java/org/apache/sling/mom/Subscriber.java    | 3 +++
 src/main/java/org/apache/sling/mom/TopicManager.java  | 3 +++
 6 files changed, 21 insertions(+)

diff --git a/pom.xml b/pom.xml
index 6bdb924..19f99da 100644
--- a/pom.xml
+++ b/pom.xml
@@ -84,6 +84,12 @@
             <artifactId>org.apache.felix.scr.annotations</artifactId>
         </dependency>
         <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>osgi.annotation</artifactId>
+            <version>6.0.1</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
             <groupId>com.google.code.findbugs</groupId>
             <artifactId>jsr305</artifactId>
             <version>2.0.1</version>
diff --git a/src/main/java/org/apache/sling/mom/MessageFilter.java b/src/main/java/org/apache/sling/mom/MessageFilter.java
index bce593e..6d1c41d 100644
--- a/src/main/java/org/apache/sling/mom/MessageFilter.java
+++ b/src/main/java/org/apache/sling/mom/MessageFilter.java
@@ -19,11 +19,14 @@
 
 package org.apache.sling.mom;
 
+import org.osgi.annotation.versioning.ProviderType;
+
 import java.util.Map;
 
 /**
  * Filter inbound messages, optionally implemented by QueueReaders.
  */
+@ProviderType
 public interface MessageFilter {
     /**
      * Provides message filtering, the implementation should return true if it wants to get the message, false if not.
diff --git a/src/main/java/org/apache/sling/mom/QueueManager.java b/src/main/java/org/apache/sling/mom/QueueManager.java
index c3a0260..b2ca144 100644
--- a/src/main/java/org/apache/sling/mom/QueueManager.java
+++ b/src/main/java/org/apache/sling/mom/QueueManager.java
@@ -19,11 +19,14 @@
 
 package org.apache.sling.mom;
 
+import org.osgi.annotation.versioning.ProviderType;
+
 import java.util.Map;
 
 /**
  * Manages named queues allowing messages to be added to the queue and a queue reader to be opened to read messages from a queue.
  */
+@ProviderType
 public interface QueueManager {
 
     /**
diff --git a/src/main/java/org/apache/sling/mom/QueueReader.java b/src/main/java/org/apache/sling/mom/QueueReader.java
index e1f414f..044afaf 100644
--- a/src/main/java/org/apache/sling/mom/QueueReader.java
+++ b/src/main/java/org/apache/sling/mom/QueueReader.java
@@ -19,6 +19,8 @@
 
 package org.apache.sling.mom;
 
+import org.osgi.annotation.versioning.ProviderType;
+
 import java.util.Map;
 
 /**
@@ -28,6 +30,7 @@ import java.util.Map;
  * This interface should be implemented as an OSGi Service. The implementation of the MoM API should register any services
  * implementing QueueReader using the OSGi Whiteboard pattern.
  */
+@ProviderType
 public interface QueueReader  {
 
 
diff --git a/src/main/java/org/apache/sling/mom/Subscriber.java b/src/main/java/org/apache/sling/mom/Subscriber.java
index 38106eb..ed5ce19 100644
--- a/src/main/java/org/apache/sling/mom/Subscriber.java
+++ b/src/main/java/org/apache/sling/mom/Subscriber.java
@@ -18,6 +18,8 @@
  */
 package org.apache.sling.mom;
 
+import org.osgi.annotation.versioning.ProviderType;
+
 import java.util.Map;
 
 /**
@@ -26,6 +28,7 @@ import java.util.Map;
  * which will implement a OSGi Whiteboard pattern will register it based on the values in the OSGi property "topics".
  * The component may optionally implement MessageFilter if it wants to separate filtering messages sooner.
  */
+@ProviderType
 public interface Subscriber {
 
     /**
diff --git a/src/main/java/org/apache/sling/mom/TopicManager.java b/src/main/java/org/apache/sling/mom/TopicManager.java
index dcc5490..fcb4af7 100644
--- a/src/main/java/org/apache/sling/mom/TopicManager.java
+++ b/src/main/java/org/apache/sling/mom/TopicManager.java
@@ -20,6 +20,8 @@
 package org.apache.sling.mom;
 
 
+import org.osgi.annotation.versioning.ProviderType;
+
 import javax.annotation.Nonnull;
 import java.util.Collections;
 import java.util.HashSet;
@@ -32,6 +34,7 @@ import java.util.Set;
  * To create a subscriber implement the Subscriber interface and the implementation of TopicManager should
  * implement the OSGi whiteboard pattern.
  */
+@ProviderType
 public interface TopicManager {
 
 

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