jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1513056 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionContext.java
Date Mon, 12 Aug 2013 07:09:11 GMT
Author: jukka
Date: Mon Aug 12 07:09:10 2013
New Revision: 1513056

URL: http://svn.apache.org/r1513056
Log:
OAK-953: Allow sub-classing of SessionImpl

Always use getWorkspace() when accessing the workspace instance.

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=1513056&r1=1513055&r2=1513056&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
Mon Aug 12 07:09:10 2013
@@ -165,23 +165,23 @@ public class SessionContext implements N
     }
 
     public LockManager getLockManager() {
-        return workspace.getLockManager();
+        return getWorkspace().getLockManager();
     }
 
     public NodeTypeManager getNodeTypeManager() {
-        return workspace.getNodeTypeManager();
+        return getWorkspace().getNodeTypeManager();
     }
 
     public VersionManager getVersionManager() throws RepositoryException {
-        return workspace.getVersionManager();
+        return getWorkspace().getVersionManager();
     }
 
     public EffectiveNodeTypeProvider getEffectiveNodeTypeProvider() {
-        return workspace.getReadWriteNodeTypeManager();
+        return getWorkspace().getReadWriteNodeTypeManager();
     }
 
     public DefinitionProvider getDefinitionProvider() {
-        return workspace.getReadWriteNodeTypeManager();
+        return getWorkspace().getReadWriteNodeTypeManager();
     }
 
     @Nonnull



Mime
View raw message