jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r776985 - /jackrabbit/branches/1.x/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TransientRepository.java
Date Thu, 21 May 2009 07:17:47 GMT
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));
     }
 



Mime
View raw message