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 2009/05/21 09:17:47 UTC

svn commit: r776985 - /jackrabbit/branches/1.x/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TransientRepository.java

Author: jukka
Date: Thu May 21 07:17:46 2009
New Revision: 776985

URL: http://svn.apache.org/viewvc?rev=776985&view=rev
Log:
JCR-2119: Method to create default RepositoryConfig from just the repository directory

Keep the "throws IOException" declarations in TransientRepository constructors to avoid compile failures in clients. The signatures can be fixed in Jackrabbit 2.0

Modified:
    jackrabbit/branches/1.x/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TransientRepository.java

Modified: jackrabbit/branches/1.x/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TransientRepository.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/1.x/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TransientRepository.java?rev=776985&r1=776984&r2=776985&view=diff
==============================================================================
--- jackrabbit/branches/1.x/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TransientRepository.java (original)
+++ jackrabbit/branches/1.x/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TransientRepository.java Thu May 21 07:17:46 2009
@@ -155,10 +155,9 @@
      * are not found, then the default values "<code>repository.xml</code>"
      * and "<code>repository</code>" are used.
      *
-     * @throws IOException if the static repository descriptors cannot be loaded
+     * @throws IOException not thrown, to be removed in Jackrabbit 2.0
      */
-    public TransientRepository()
-            throws IOException {
+    public TransientRepository() throws IOException {
         this(System.getProperty(CONF_PROPERTY, CONF_DEFAULT),
              System.getProperty(HOME_PROPERTY, HOME_DEFAULT));
     }
@@ -168,7 +167,7 @@
      * configuration to initialize the underlying repository instance.
      *
      * @param config repository configuration
-     * @throws IOException if the static repository descriptors cannot be loaded
+     * @throws IOException not thrown, to be removed in Jackrabbit 2.0
      */
     public TransientRepository(final RepositoryConfig config)
             throws IOException {
@@ -187,9 +186,10 @@
      * @see #TransientRepository(File, File)
      * @param config repository configuration file
      * @param home repository home directory
-     * @throws IOException if the static repository descriptors cannot be loaded
+     * @throws IOException not thrown, to be removed in Jackrabbit 2.0
      */
-    public TransientRepository(String config, String home) {
+    public TransientRepository(String config, String home)
+            throws IOException {
         this(new File(config), new File(home));
     }