jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1456034 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionContext.java
Date Wed, 13 Mar 2013 16:28:36 GMT
Author: mduerig
Date: Wed Mar 13 16:28:36 2013
New Revision: 1456034

URL: http://svn.apache.org/r1456034
Log:
OAK-672: Avoid JCR APIs calling other JCR APIs
- Add QueryManager to SessionContext

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionContext.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionContext.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionContext.java?rev=1456034&r1=1456033&r2=1456034&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionContext.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionContext.java
Wed Mar 13 16:28:36 2013
@@ -9,6 +9,7 @@ import javax.jcr.RepositoryException;
 import javax.jcr.lock.LockManager;
 import javax.jcr.nodetype.NodeTypeManager;
 import javax.jcr.observation.ObservationManager;
+import javax.jcr.query.QueryManager;
 import javax.jcr.security.AccessControlManager;
 import javax.jcr.version.VersionManager;
 
@@ -96,6 +97,10 @@ public abstract class SessionContext {
 
     public abstract WorkspaceImpl getWorkspace();
 
+    public QueryManager getQueryManager() throws RepositoryException {
+        return getWorkspace().getQueryManager();
+    }
+
     public LockManager getLockManager() {
         return getWorkspace().getLockManager();
     }



Mime
View raw message