Author: cziegeler
Date: Sun Oct 16 09:04:24 2016
New Revision: 1765124

URL: http://svn.apache.org/viewvc?rev=1765124&view=rev
Log:
SLING-6162 : Deprecate PathMapper

Modified:
    
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/PathMapper.java

Modified: 
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/PathMapper.java
URL: 
http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/PathMapper.java?rev=1765124&r1=1765123&r2=1765124&view=diff
==============================================================================
--- 
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/PathMapper.java
 (original)
+++ 
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/PathMapper.java
 Sun Oct 16 09:04:24 2016
@@ -36,11 +36,14 @@ import org.slf4j.LoggerFactory;
  * The {@code PathMapper} allows to
  * - map path from the JCR resource tree to resource paths
  * - hide JCR nodes; however this is not a security feature
+ * @deprecated
  */
+@Deprecated
 @Service(value = PathMapper.class)
 @Component(metatype = true,
         label = "Apache Sling JCR Resource Provider Path Mapper",
         description = "This service provides path mappings for JCR nodes.")
+
 public class PathMapper {
 
     /** Logger */
@@ -82,6 +85,7 @@ public class PathMapper {
         mappings.clear();
         final String[] config = 
PropertiesUtil.toStringArray(props.get(PATH_MAPPING), null);
         if ( config != null ) {
+            log.warn("The Apache Sling JCR Path Mapper is deprecated.");
             for (final String mapping : config) {
                 boolean valid = false;
                 final String[] parts = mapping.split(":");


Reply via email to