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 2015/02/19 12:12:21 UTC

svn commit: r1660848 - /sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ParametrizableResourceProvider.java

Author: cziegeler
Date: Thu Feb 19 11:12:21 2015
New Revision: 1660848

URL: http://svn.apache.org/r1660848
Log:
Update javadoc and a JSR-305 annotations

Modified:
    sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ParametrizableResourceProvider.java

Modified: sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ParametrizableResourceProvider.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ParametrizableResourceProvider.java?rev=1660848&r1=1660847&r2=1660848&view=diff
==============================================================================
--- sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ParametrizableResourceProvider.java (original)
+++ sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ParametrizableResourceProvider.java Thu Feb 19 11:12:21 2015
@@ -30,7 +30,9 @@ import aQute.bnd.annotation.ConsumerType
  * semicolon-separated parameters added to the URI, eg.: {@code /content/test;v='1.0'}.
  *
  * If a {@code ResourceProvider} implements this interface, the {@link #getResource(ResourceResolver, String, Map)}
- * method is called instead of {@link ResourceProvider#getResource(ResourceResolver, String)}.
+ * method is called instead of {@link ResourceProvider#getResource(ResourceResolver, String)}
+ * if such parameters are available. If no map (or an empty map) is available,
+ * {@link ResourceProvider#getResource(ResourceResolver, String)} is called.
  *
  * @since 2.8.0 (Sling API Bundle 2.9.0)
  */
@@ -51,7 +53,7 @@ public interface ParametrizableResourceP
      * @param resourceResolver
      *            The {@link ResourceResolver} to which the returned {@link Resource} is attached.
      * @param path The full path of the resource.
-     * @param parameters A map of additional parameters, the map might be empty.
+     * @param parameters A map of additional parameters, the map contains at least one parameter.
      * @return <code>null</code> If this provider does not have a resource for
      *         the path.
      * @throws org.apache.sling.api.SlingException