jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1494911 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/Jcr.java
Date Thu, 20 Jun 2013 10:27:02 GMT
Author: mduerig
Date: Thu Jun 20 10:27:02 2013
New Revision: 1494911

URL: http://svn.apache.org/r1494911
Log:
OAK-352: Oak builder for simplified repository construction
Add auxiliary constructor for creating a repository with a given node store

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

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/Jcr.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/Jcr.java?rev=1494911&r1=1494910&r2=1494911&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/Jcr.java (original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/Jcr.java Thu
Jun 20 10:27:02 2013
@@ -16,6 +16,8 @@
  */
 package org.apache.jackrabbit.oak.jcr;
 
+import static com.google.common.base.Preconditions.checkNotNull;
+
 import java.util.concurrent.ScheduledExecutorService;
 
 import javax.annotation.Nonnull;
@@ -44,8 +46,7 @@ import org.apache.jackrabbit.oak.spi.com
 import org.apache.jackrabbit.oak.spi.lifecycle.RepositoryInitializer;
 import org.apache.jackrabbit.oak.spi.query.QueryIndexProvider;
 import org.apache.jackrabbit.oak.spi.security.SecurityProvider;
-
-import static com.google.common.base.Preconditions.checkNotNull;
+import org.apache.jackrabbit.oak.spi.state.NodeStore;
 
 public class Jcr {
 
@@ -83,6 +84,10 @@ public class Jcr {
         this(new Oak(kernel));
     }
 
+    public Jcr(NodeStore store) {
+        this(new Oak(store));
+    }
+
     @Nonnull
     public final Jcr with(@Nonnull RepositoryInitializer initializer) {
        oak.with(checkNotNull(initializer));



Mime
View raw message