incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r951546 - /sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolver.java
Date Fri, 04 Jun 2010 19:53:56 GMT
Author: justin
Date: Fri Jun  4 19:53:56 2010
New Revision: 951546

URL: http://svn.apache.org/viewvc?rev=951546&view=rev
Log:
SLING-1447 - using request-bound session for findResources()

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

Modified: sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolver.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolver.java?rev=951546&r1=951545&r2=951546&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolver.java
(original)
+++ sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolver.java
Fri Jun  4 19:53:56 2010
@@ -645,7 +645,7 @@ public class JcrResourceResolver
     throws SlingException {
         checkClosed();
         try {
-            final QueryResult res = JcrResourceUtil.query(getSession(), query, language);
+            final QueryResult res = JcrResourceUtil.query(adaptTo(Session.class), query,
language);
             return new ResourceIteratorDecorator(this.factory.getResourceDecoratorTracker(),
null,
                     new JcrNodeResourceIterator(this, res.getNodes(), factory.getDynamicClassLoader()));
         } catch (javax.jcr.query.InvalidQueryException iqe) {



Mime
View raw message