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 2016/10/12 08:04:00 UTC
svn commit: r1764396 -
/sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/observation/ResourceChange.java
Author: cziegeler
Date: Wed Oct 12 08:04:00 2016
New Revision: 1764396
URL: http://svn.apache.org/viewvc?rev=1764396&view=rev
Log:
SLING-6138 : Use JcrResourceListener for observation. Deprecate attribute methods
Modified:
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/observation/ResourceChange.java
Modified: sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/observation/ResourceChange.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/observation/ResourceChange.java?rev=1764396&r1=1764395&r2=1764396&view=diff
==============================================================================
--- sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/observation/ResourceChange.java (original)
+++ sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/observation/ResourceChange.java Wed Oct 12 08:04:00 2016
@@ -144,7 +144,10 @@ public class ResourceChange {
* returning {code null} is the equivalent of "don't know".
* @return The set of changed property names. For external events or
* resource provider events {@code null} is returned.
+ * @deprecated As there is no guarantee that this information is contained in the change
+ * event, this should not be used anymore.
*/
+ @Deprecated
public @CheckForNull Set<String> getChangedPropertyNames() {
return this.changedPropertyNames;
}
@@ -159,7 +162,10 @@ public class ResourceChange {
* returning {code null} is the equivalent of "don't know".
* @return The set of changed property names. For external events or
* resource provider events {@code null} is returned.
+ * @deprecated As there is no guarantee that this information is contained in the change
+ * event, this should not be used anymore.
*/
+ @Deprecated
public @CheckForNull Set<String> getAddedPropertyNames() {
return this.addedPropertyNames;
}
@@ -174,7 +180,10 @@ public class ResourceChange {
* returning {code null} is the equivalent of "don't know".
* @return The set of changed property names. For external events or
* resource provider events {@code null} is returned.
+ * @deprecated As there is no guarantee that this information is contained in the change
+ * event, this should not be used anymore.
*/
+ @Deprecated
public @CheckForNull Set<String> getRemovedPropertyNames() {
return this.removedPropertyNames;
}