jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1401745 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
Date Wed, 24 Oct 2012 15:53:49 GMT
Author: mduerig
Date: Wed Oct 24 15:53:49 2012
New Revision: 1401745

URL: http://svn.apache.org/viewvc?rev=1401745&view=rev
Log:
OAK-387: Clarify behavior/state of Root and Tree after calling ContentSession#close()
Javadoc

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java?rev=1401745&r1=1401744&r2=1401745&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
Wed Oct 24 15:53:49 2012
@@ -143,6 +143,13 @@ public class RootImpl implements Root {
         this.conflictHandler = conflictHandler;
     }
 
+    /**
+     * Called whenever a method on this instance or on any {@code Tree} instance
+     * obtained from this {@code Root} is called. This default implementation
+     * does nothing. Sub classes may override this method and throw an exception
+     * indicating that this {@code Root} instance is not live anymore (e.g. because
+     * the session has been logged out already).
+     */
     protected void checkLive() {
 
     }



Mime
View raw message