jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1387553 - in /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type: ReadOnlyNodeTypeManager.java ReadWriteNodeTypeManager.java
Date Wed, 19 Sep 2012 12:35:21 GMT
Author: mreutegg
Date: Wed Sep 19 12:35:20 2012
New Revision: 1387553

URL: http://svn.apache.org/viewvc?rev=1387553&view=rev
Log:
OAK-314: Align interaction of NamespaceRegistry and NodeTypeManager with Session
- move refresh() from ReadOnlyNodeTypeManager to ReadWriteNodeTypeManager

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/ReadOnlyNodeTypeManager.java
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/ReadWriteNodeTypeManager.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/ReadOnlyNodeTypeManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/ReadOnlyNodeTypeManager.java?rev=1387553&r1=1387552&r2=1387553&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/ReadOnlyNodeTypeManager.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/ReadOnlyNodeTypeManager.java
Wed Sep 19 12:35:20 2012
@@ -74,17 +74,6 @@ public abstract class ReadOnlyNodeTypeMa
     protected abstract Tree getTypes();
 
     /**
-     * Called by the {@link NodeTypeManager} implementation methods to
-     * refresh the state of the session associated with this instance.
-     * That way the session is kept in sync with the latest global state
-     * seen by the node type manager.
-     *
-     * @throws RepositoryException if the session could not be refreshed
-     */
-    protected void refresh() throws RepositoryException {
-    }
-
-    /**
      * The value factory to be used by {@link org.apache.jackrabbit.oak.plugins.type.PropertyDefinitionImpl#getDefaultValues()}.
      * If {@code null} the former returns {@code null}.
      * @return  {@code ValueFactory} instance or {@code null}.

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/ReadWriteNodeTypeManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/ReadWriteNodeTypeManager.java?rev=1387553&r1=1387552&r2=1387553&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/ReadWriteNodeTypeManager.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/ReadWriteNodeTypeManager.java
Wed Sep 19 12:35:20 2012
@@ -127,6 +127,17 @@ public abstract class ReadWriteNodeTypeM
     }
 
     /**
+     * Called by the {@link ReadWriteNodeTypeManager} implementation methods to
+     * refresh the state of the session associated with this instance.
+     * That way the session is kept in sync with the latest global state
+     * seen by the node type manager.
+     *
+     * @throws RepositoryException if the session could not be refreshed
+     */
+    protected void refresh() throws RepositoryException {
+    }
+
+    /**
      * Registers built in node types using the given {@link Root}.
      *
      * @param root the {@link Root} instance.



Mime
View raw message