jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r777024 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TransientRepository.java
Date Thu, 21 May 2009 08:59:32 GMT
Author: jukka
Date: Thu May 21 08:59:31 2009
New Revision: 777024

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


No more need for IOExceptions from TransientRepository constructors.

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TransientRepository.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TransientRepository.java?rev=777024&r1=777023&r2=777024&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TransientRepository.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TransientRepository.java
Thu May 21 08:59:31 2009
@@ -154,11 +154,8 @@
      * <code>org.apache.jackrabbit.repository.home</code>. If these properties
      * 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
      */
-    public TransientRepository()
-            throws IOException {
+    public TransientRepository() {
         this(System.getProperty(CONF_PROPERTY, CONF_DEFAULT),
              System.getProperty(HOME_PROPERTY, HOME_DEFAULT));
     }
@@ -168,10 +165,8 @@
      * 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 {
+    public TransientRepository(final RepositoryConfig config) {
         this(new RepositoryFactory() {
             public RepositoryImpl getRepository() throws RepositoryException {
                 return RepositoryImpl.create(config);
@@ -187,7 +182,6 @@
      * @see #TransientRepository(File, File)
      * @param config repository configuration file
      * @param home repository home directory
-     * @throws IOException if the static repository descriptors cannot be loaded
      */
     public TransientRepository(String config, String home) {
         this(new File(config), new File(home));



Mime
View raw message