Author: cziegeler
Date: Mon Nov 12 07:16:55 2012
New Revision: 1408178
URL: http://svn.apache.org/viewvc?rev=1408178&view=rev
Log:
Use constants
Modified:
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceListener.java
Modified:
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceListener.java
URL:
http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceListener.java?rev=1408178&r1=1408177&r2=1408178&view=diff
==============================================================================
---
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceListener.java
(original)
+++
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceListener.java
Mon Nov 12 07:16:55 2012
@@ -266,16 +266,14 @@ public class JcrResourceListener impleme
}
public void addProperties(final Dictionary<String, Object> properties)
{
- // we're not using the Constants from SlingConstants here to avoid
the requirement of the latest
- // SLING API to be available!!
if ( addedAttributes != null ) {
- properties.put("resourceAddedAttributes",
addedAttributes.toArray(new String[addedAttributes.size()]));
+ properties.put(SlingConstants.PROPERTY_ADDED_ATTRIBUTES,
addedAttributes.toArray(new String[addedAttributes.size()]));
}
if ( changedAttributes != null ) {
- properties.put("resourceChangedAttributes",
changedAttributes.toArray(new String[changedAttributes.size()]));
+ properties.put(SlingConstants.PROPERTY_CHANGED_ATTRIBUTES,
changedAttributes.toArray(new String[changedAttributes.size()]));
}
if ( removedAttributes != null ) {
- properties.put("resourceRemovedAttributes",
removedAttributes.toArray(new String[removedAttributes.size()]));
+ properties.put(SlingConstants.PROPERTY_REMOVED_ATTRIBUTES,
removedAttributes.toArray(new String[removedAttributes.size()]));
}
}
}