jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r387966 - /jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/TransientRepository.java
Date Wed, 22 Mar 2006 23:17:36 GMT
Author: jukka
Date: Wed Mar 22 15:17:29 2006
New Revision: 387966

URL: http://svn.apache.org/viewcvs?rev=387966&view=rev
Log:
JCR-328: Restored the TransientRepository(RepositoryConfig) constructor.

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

Modified: jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/TransientRepository.java
URL: http://svn.apache.org/viewcvs/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/TransientRepository.java?rev=387966&r1=387965&r2=387966&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/TransientRepository.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/TransientRepository.java
Wed Mar 22 15:17:29 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



Mime
View raw message