jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1157241 - /jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryFactoryImpl.java
Date Fri, 12 Aug 2011 20:32:57 GMT
Author: mduerig
Date: Fri Aug 12 20:32:56 2011
New Revision: 1157241

URL: http://svn.apache.org/viewvc?rev=1157241&view=rev
Log:
spi2microkernel (WIP)
- RepositoryFactory: return null instead of throwing

Modified:
    jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryFactoryImpl.java

Modified: jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryFactoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryFactoryImpl.java?rev=1157241&r1=1157240&r2=1157241&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryFactoryImpl.java
(original)
+++ jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryFactoryImpl.java
Fri Aug 12 20:32:56 2011
@@ -29,6 +29,10 @@ import java.util.Map;
 public class RepositoryFactoryImpl implements RepositoryFactory {
 
     public Repository getRepository(Map parameters) {
+        if (parameters == null || parameters.isEmpty()) {
+            return null;
+        }
+        
         try {
             return RepositoryImpl.create(
                     new Jcr2spiRepositoryFactory.RepositoryConfigImpl(



Mime
View raw message