directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 56891 - incubator/directory/eve/trunk/jndi-provider/src/java/org/apache/eve/jndi
Date Mon, 08 Nov 2004 02:27:32 GMT
Author: akarasulu
Date: Sun Nov  7 18:27:30 2004
New Revision: 56891

Modified:
   incubator/directory/eve/trunk/jndi-provider/src/java/org/apache/eve/jndi/EveContextFactory.java
Log:
fixed the class loading issue with spaces in properties


Modified: incubator/directory/eve/trunk/jndi-provider/src/java/org/apache/eve/jndi/EveContextFactory.java
==============================================================================
--- incubator/directory/eve/trunk/jndi-provider/src/java/org/apache/eve/jndi/EveContextFactory.java
(original)
+++ incubator/directory/eve/trunk/jndi-provider/src/java/org/apache/eve/jndi/EveContextFactory.java
Sun Nov  7 18:27:30 2004
@@ -89,6 +89,20 @@
     public static final String ANONYMOUS_ENV = "eve.enable.anonymous";
 
     // ------------------------------------------------------------------------
+    // Custom JNDI properties for adding new application partitions
+    // ------------------------------------------------------------------------
+
+    /** a comma separated list of partition names */
+    public static final String PARTITIONS_ENV = "eve.db.partitions";
+    /** the envprop key base to the suffix of a partition */
+    public static final String SUFFIX_BASE_ENV = "eve.db.partition.suffix.";
+    /** the envprop key base to the space separated list of indices for a partition */
+    public static final String INDICES_BASE_ENV = "eve.db.partition.indices.";
+    /** the envprop key base to the Attributes for the context nexus entry */
+    public static final String ATTRIBUTES_BASE_ENV = "eve.db.partition.attributes.";
+
+
+    // ------------------------------------------------------------------------
     //
     // ------------------------------------------------------------------------
 
@@ -108,19 +122,6 @@
     };
 
     // ------------------------------------------------------------------------
-    // Custom JNDI properties for adding new application partitions
-    // ------------------------------------------------------------------------
-
-    /** a comma separated list of partition names */
-    public static final String PARTITIONS_ENV = "eve.db.partitions";
-    /** the envprop key base to the suffix of a partition */
-    public static final String SUFFIX_BASE_ENV = "eve.db.partition.suffix.";
-    /** the envprop key base to the space separated list of indices for a partition */
-    public static final String INDICES_BASE_ENV = "eve.db.partition.indices.";
-    /** the envprop key base to the Attributes for the context nexus entry */
-    public static final String ATTRIBUTES_BASE_ENV = "eve.db.partition.attributes.";
-
-    // ------------------------------------------------------------------------
     // Members
     // ------------------------------------------------------------------------
 
@@ -297,6 +298,10 @@
         if ( initialEnv.containsKey( SCHEMAS_ENV ) )
         {
             schemas = ( ( String ) initialEnv.get( SCHEMAS_ENV ) ).split( "," );
+            for ( int ii = 0; ii < schemas.length; ii++ )
+            {
+                schemas[ii] = schemas[ii].trim();
+            }
         }
 
         loader.load( schemas, bootstrapRegistries );
@@ -544,7 +549,7 @@
             else
             {
                 throw new EveNamingException( "The root entry env property was"
-                        + " not of an expected type!",
+                        + " not of an expected type: " + rootEntry,
                         ResultCodeEnum.OTHER );
             }
 

Mime
View raw message