jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r156154 - incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/RepositoryConfig.java
Date Fri, 04 Mar 2005 14:00:36 GMT
Author: jukka
Date: Fri Mar  4 06:00:35 2005
New Revision: 156154

URL: http://svn.apache.org/viewcvs?view=rev&rev=156154
Log:
Re-added the RepositoryConfig.create(InputSource,String) method. (JCR-53)
(The method is used by webapp code outside Jackrabbit.)

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/RepositoryConfig.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/RepositoryConfig.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/RepositoryConfig.java?view=diff&r1=156153&r2=156154
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/RepositoryConfig.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/RepositoryConfig.java
Fri Mar  4 06:00:35 2005
@@ -22,6 +22,7 @@
 
 import javax.jcr.RepositoryException;
 
+import org.xml.sax.InputSource;
 import org.apache.jackrabbit.core.fs.FileSystem;
 import org.jdom.Document;
 
@@ -35,7 +36,13 @@
         ConfigurationParser parser = new ConfigurationParser(new Properties());
         return parser.parseRepositoryConfig(file, home);
     }
-    
+
+    public static RepositoryConfig create(InputSource is, String home)
+            throws RepositoryException {
+        ConfigurationParser parser = new ConfigurationParser(new Properties());
+        return parser.parseRepositoryConfig(is, home);
+    }
+   
     private Document config;
     private ConfigurationParser parser;
 



Mime
View raw message