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/23 00:17:36 UTC
svn commit: r387966 -
/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/TransientRepository.java
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