directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r191593 - in /directory/apacheds: branches/db_refactor/core/src/main/java/org/apache/ldap/server/jndi/AbstractContextFactory.java trunk/core/src/main/java/org/apache/ldap/server/jndi/AbstractContextFactory.java
Date Tue, 21 Jun 2005 00:08:47 GMT
Author: trustin
Date: Mon Jun 20 17:08:46 2005
New Revision: 191593

URL: http://svn.apache.org/viewcvs?rev=191593&view=rev
Log:
AbstractContextFactory requires
Configuration object even if it is already started up and users just
want to get initial context.  So I fixed it.



Modified:
    directory/apacheds/branches/db_refactor/core/src/main/java/org/apache/ldap/server/jndi/AbstractContextFactory.java
    directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/AbstractContextFactory.java

Modified: directory/apacheds/branches/db_refactor/core/src/main/java/org/apache/ldap/server/jndi/AbstractContextFactory.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/branches/db_refactor/core/src/main/java/org/apache/ldap/server/jndi/AbstractContextFactory.java?rev=191593&r1=191592&r2=191593&view=diff
==============================================================================
--- directory/apacheds/branches/db_refactor/core/src/main/java/org/apache/ldap/server/jndi/AbstractContextFactory.java
(original)
+++ directory/apacheds/branches/db_refactor/core/src/main/java/org/apache/ldap/server/jndi/AbstractContextFactory.java
Mon Jun 20 17:08:46 2005
@@ -86,7 +86,7 @@
         {
             ( ( DefaultContextFactoryConfiguration ) provider ).startup( this, env );
         }
-        else
+        else if( provider == null )
         {
             throw new NamingException( "Unknown configuration: " + cfg );
         }

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/AbstractContextFactory.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/AbstractContextFactory.java?rev=191593&r1=191592&r2=191593&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/AbstractContextFactory.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/AbstractContextFactory.java
Mon Jun 20 17:08:46 2005
@@ -86,7 +86,7 @@
         {
             ( ( DefaultContextFactoryConfiguration ) provider ).startup( this, env );
         }
-        else
+        else if( provider == null )
         {
             throw new NamingException( "Unknown configuration: " + cfg );
         }



Mime
View raw message