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/10/30 08:35:21 UTC

svn commit: r1711416 - /sling/trunk/bundles/api/src/main/java/org/apache/sling/spi/resource/provider/ResourceProvider.java

Author: cziegeler
Date: Fri Oct 30 07:35:21 2015
New Revision: 1711416

URL: http://svn.apache.org/viewvc?rev=1711416&view=rev
Log:
Update javadocs for query provider

Modified:
    sling/trunk/bundles/api/src/main/java/org/apache/sling/spi/resource/provider/ResourceProvider.java

Modified: sling/trunk/bundles/api/src/main/java/org/apache/sling/spi/resource/provider/ResourceProvider.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/api/src/main/java/org/apache/sling/spi/resource/provider/ResourceProvider.java?rev=1711416&r1=1711415&r2=1711416&view=diff
==============================================================================
--- sling/trunk/bundles/api/src/main/java/org/apache/sling/spi/resource/provider/ResourceProvider.java (original)
+++ sling/trunk/bundles/api/src/main/java/org/apache/sling/spi/resource/provider/ResourceProvider.java Fri Oct 30 07:35:21 2015
@@ -554,6 +554,11 @@ public abstract class ResourceProvider<T
 
     /**
      * Get the optional query provider.
+     * If the provider supports this kind of query, it must return a query provider implementation
+     * if the provider is active. It should not return a query provider if it is not
+     * active.
+     * This method is called for each query, therefore the provider implementation
+     * might cache the provider object.
      *
      * @return A query provider if this resource provider supports this type of querying.
      */
@@ -563,6 +568,11 @@ public abstract class ResourceProvider<T
 
     /**
      * Get the optional JCR query provider.
+     * If the provider supports this kind of query, it must return a query provider implementation
+     * if the provider is active. It should not return a query provider if it is not
+     * active.
+     * This method is called for each query, therefore the provider implementation
+     * might cache the provider object.
      *
      * @return A JCR query provider if this resource provider supports this type of querying.
      */