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:25:51 UTC
[sling-org-apache-sling-discovery-api] 03/11: Add ProviderType and
ConsumerType annotations
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.discovery.api-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-api.git
commit 1a15a279f07aa7a439b81d086d31e0697dc68f3d
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Sep 6 09:11:41 2013 +0000
Add ProviderType and ConsumerType annotations
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/api@1520520 13f79535-47bb-0310-9956-ffa450edef68
---
src/main/java/org/apache/sling/discovery/ClusterView.java | 3 +++
src/main/java/org/apache/sling/discovery/DiscoveryService.java | 5 ++++-
src/main/java/org/apache/sling/discovery/InstanceDescription.java | 3 +++
src/main/java/org/apache/sling/discovery/InstanceFilter.java | 3 +++
src/main/java/org/apache/sling/discovery/PropertyProvider.java | 3 +++
src/main/java/org/apache/sling/discovery/TopologyEventListener.java | 3 +++
src/main/java/org/apache/sling/discovery/TopologyView.java | 3 +++
7 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/sling/discovery/ClusterView.java b/src/main/java/org/apache/sling/discovery/ClusterView.java
index 64744a1..2b3c75e 100644
--- a/src/main/java/org/apache/sling/discovery/ClusterView.java
+++ b/src/main/java/org/apache/sling/discovery/ClusterView.java
@@ -20,12 +20,15 @@ package org.apache.sling.discovery;
import java.util.List;
+import aQute.bnd.annotation.ProviderType;
+
/**
* A ClusterView represents the instances of a cluster that are
* up and running and that all can see each other at a certain point in time.
* <p>
* A ClusterView can also consist of just one single instance.
*/
+@ProviderType
public interface ClusterView {
/**
diff --git a/src/main/java/org/apache/sling/discovery/DiscoveryService.java b/src/main/java/org/apache/sling/discovery/DiscoveryService.java
index 3ef52f3..8ad7fa6 100644
--- a/src/main/java/org/apache/sling/discovery/DiscoveryService.java
+++ b/src/main/java/org/apache/sling/discovery/DiscoveryService.java
@@ -18,6 +18,8 @@
*/
package org.apache.sling.discovery;
+import aQute.bnd.annotation.ProviderType;
+
/**
* The discovery service can be used to get the current topology view.
* <p>
@@ -26,8 +28,9 @@ package org.apache.sling.discovery;
* details of how this announcement occurs is implementation dependent.
* <p>
* Note that the discovery service fails if it detects a situation
- * where more than one instance with the same sling.id exists in a cluster.
+ * where more than one instance with the same sling.id exists in a cluster.
*/
+@ProviderType
public interface DiscoveryService {
/**
diff --git a/src/main/java/org/apache/sling/discovery/InstanceDescription.java b/src/main/java/org/apache/sling/discovery/InstanceDescription.java
index 5baa752..9cde2cf 100644
--- a/src/main/java/org/apache/sling/discovery/InstanceDescription.java
+++ b/src/main/java/org/apache/sling/discovery/InstanceDescription.java
@@ -20,6 +20,8 @@ package org.apache.sling.discovery;
import java.util.Map;
+import aQute.bnd.annotation.ProviderType;
+
/**
* An InstanceDescription represents and contains information about an
* instance that is part of a TopologyView.
@@ -30,6 +32,7 @@ import java.util.Map;
*
* @see TopologyView
*/
+@ProviderType
public interface InstanceDescription {
/**
diff --git a/src/main/java/org/apache/sling/discovery/InstanceFilter.java b/src/main/java/org/apache/sling/discovery/InstanceFilter.java
index a6e5a51..f25b771 100644
--- a/src/main/java/org/apache/sling/discovery/InstanceFilter.java
+++ b/src/main/java/org/apache/sling/discovery/InstanceFilter.java
@@ -18,11 +18,14 @@
*/
package org.apache.sling.discovery;
+import aQute.bnd.annotation.ConsumerType;
+
/**
* Used to filter InstanceDescriptions in a TopologyView.
* <p>
* @see DiscoveryService#findInstances(InstanceFilter)
*/
+@ConsumerType
public interface InstanceFilter {
/**
diff --git a/src/main/java/org/apache/sling/discovery/PropertyProvider.java b/src/main/java/org/apache/sling/discovery/PropertyProvider.java
index 2fa21f8..c4b292c 100644
--- a/src/main/java/org/apache/sling/discovery/PropertyProvider.java
+++ b/src/main/java/org/apache/sling/discovery/PropertyProvider.java
@@ -18,6 +18,8 @@
*/
package org.apache.sling.discovery;
+import aQute.bnd.annotation.ConsumerType;
+
/**
* The <code>PropertyProvider</code> service interface may be implemented by
@@ -30,6 +32,7 @@ package org.apache.sling.discovery;
* change, the service registration of the provider should be updated.
* This avoids periodic polling for changes.
*/
+@ConsumerType
public interface PropertyProvider {
/**
diff --git a/src/main/java/org/apache/sling/discovery/TopologyEventListener.java b/src/main/java/org/apache/sling/discovery/TopologyEventListener.java
index aed95c6..8e199ce 100644
--- a/src/main/java/org/apache/sling/discovery/TopologyEventListener.java
+++ b/src/main/java/org/apache/sling/discovery/TopologyEventListener.java
@@ -18,6 +18,8 @@
*/
package org.apache.sling.discovery;
+import aQute.bnd.annotation.ConsumerType;
+
/**
* The <code>TopologyEventListener</code> service interface may be implemented by
* components interested in being made aware of changes in the topology.
@@ -25,6 +27,7 @@ package org.apache.sling.discovery;
* Upon registration and whenever changes in the topology occur, this
* service is informed.
*/
+@ConsumerType
public interface TopologyEventListener {
/**
diff --git a/src/main/java/org/apache/sling/discovery/TopologyView.java b/src/main/java/org/apache/sling/discovery/TopologyView.java
index cc143ce..b76695a 100644
--- a/src/main/java/org/apache/sling/discovery/TopologyView.java
+++ b/src/main/java/org/apache/sling/discovery/TopologyView.java
@@ -20,11 +20,14 @@ package org.apache.sling.discovery;
import java.util.Set;
+import aQute.bnd.annotation.ProviderType;
+
/**
* A topology view is a cross-cluster list of instances and clusters
* that have announced themselves with the DiscoveryService.
*
*/
+@ProviderType
public interface TopologyView {
/**
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.