You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by ju...@apache.org on 2006/03/28 19:17:10 UTC

svn commit: r389548 - /jackrabbit/branches/1.0/jackrabbit/src/main/java/org/apache/jackrabbit/core/TransientRepository.java

Author: jukka
Date: Tue Mar 28 09:17:05 2006
New Revision: 389548

URL: http://svn.apache.org/viewcvs?rev=389548&view=rev
Log:
1.0: Merged revision 387966: JCR-328 TransientRepository with LocalFileSystem eventually causes Repository data to be stored at path /

Modified:
    jackrabbit/branches/1.0/jackrabbit/src/main/java/org/apache/jackrabbit/core/TransientRepository.java

Modified: jackrabbit/branches/1.0/jackrabbit/src/main/java/org/apache/jackrabbit/core/TransientRepository.java
URL: http://svn.apache.org/viewcvs/jackrabbit/branches/1.0/jackrabbit/src/main/java/org/apache/jackrabbit/core/TransientRepository.java?rev=389548&r1=389547&r2=389548&view=diff
==============================================================================
--- jackrabbit/branches/1.0/jackrabbit/src/main/java/org/apache/jackrabbit/core/TransientRepository.java (original)
+++ jackrabbit/branches/1.0/jackrabbit/src/main/java/org/apache/jackrabbit/core/TransientRepository.java Tue Mar 28 09:17:05 2006
@@ -171,6 +171,22 @@
 
     /**
      * Creates a transient repository proxy that will use the given repository
+     * configuration to initialize the underlying repository instance.
+     *
+     * @param config repository configuration
+     * @throws IOException if the static repository descriptors cannot be loaded
+     */
+    public TransientRepository(final RepositoryConfig config)
+            throws IOException {
+        this(new RepositoryFactory() {
+            public RepositoryImpl getRepository() throws RepositoryException {
+                return RepositoryImpl.create(config);
+            }
+        });
+    }
+
+    /**
+     * Creates a transient repository proxy that will use the given repository
      * configuration file and home directory paths to initialize the underlying
      * repository instances. The repository configuration file is reloaded
      * whenever the repository is restarted, so it is safe to modify the