Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBJ Hargrave2017-02-15 21:19:49 +0000
committerThomas Watson2017-06-16 12:38:08 +0000
commitda81ff3f6ba3536193be01974a56f8d40223b216 (patch)
tree427b5d2b86ef6e33b559c5194ac52002f39c6478
parentc1ecdc3a36ce9346772eb2f51f5317257eaab41d (diff)
downloadrt.equinox.framework-da81ff3f6ba3536193be01974a56f8d40223b216.tar.gz
rt.equinox.framework-da81ff3f6ba3536193be01974a56f8d40223b216.tar.xz
rt.equinox.framework-da81ff3f6ba3536193be01974a56f8d40223b216.zip
framework: Define service.changecount service property
This service property can be used by a service to announce changes to some data provided by the service. Signed-off-by: BJ Hargrave <hargrave@us.ibm.com>
-rw-r--r--bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/Constants.java19
1 files changed, 18 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/Constants.java b/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/Constants.java
index b19bbfaf8..0b74bf5b6 100644
--- a/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/Constants.java
+++ b/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/Constants.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) OSGi Alliance (2000, 2016). All Rights Reserved.
+ * Copyright (c) OSGi Alliance (2000, 2017). All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1830,4 +1830,21 @@ public interface Constants {
* @since 1.9
*/
String BUNDLE_SCM = "Bundle-SCM";
+
+ /**
+ * Service property identifying the monotonically increasing change count of
+ * a service.
+ * <p>
+ * A service may optional provide this property to indicate there has been a
+ * change in some data provided by the service. The change count must be
+ * incremented with a positive value every time the data provided by the
+ * service is changed. The service announces the modified change count by
+ * updating its service properties with the new value for this service
+ * property.
+ * <p>
+ * The value of this property must be of type {@code Long}.
+ *
+ * @since 1.9
+ */
+ String SERVICE_CHANGECOUNT = "service.changecount";
}

Back to the top