directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r357542 - /directory/apacheds/branches/DN-refactoring/core/src/main/java/org/apache/ldap/server/schema/bootstrap/BootstrapSchemaLoader.java
Date Sun, 18 Dec 2005 23:12:50 GMT
Author: elecharny
Date: Sun Dec 18 15:12:36 2005
New Revision: 357542

URL: http://svn.apache.org/viewcvs?rev=357542&view=rev
Log:
Minor cleaning

Modified:
    directory/apacheds/branches/DN-refactoring/core/src/main/java/org/apache/ldap/server/schema/bootstrap/BootstrapSchemaLoader.java

Modified: directory/apacheds/branches/DN-refactoring/core/src/main/java/org/apache/ldap/server/schema/bootstrap/BootstrapSchemaLoader.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/branches/DN-refactoring/core/src/main/java/org/apache/ldap/server/schema/bootstrap/BootstrapSchemaLoader.java?rev=357542&r1=357541&r2=357542&view=diff
==============================================================================
--- directory/apacheds/branches/DN-refactoring/core/src/main/java/org/apache/ldap/server/schema/bootstrap/BootstrapSchemaLoader.java
(original)
+++ directory/apacheds/branches/DN-refactoring/core/src/main/java/org/apache/ldap/server/schema/bootstrap/BootstrapSchemaLoader.java
Sun Dec 18 15:12:36 2005
@@ -67,8 +67,10 @@
 
     /** stores schemas of producers for callback access */
     private ThreadLocal schemas;
+    
     /** stores registries associated with producers for callback access */
     private ThreadLocal registries;
+    
     /** the callback that just calls register() */
     private final ProducerCallback cb = new ProducerCallback()
     {
@@ -208,6 +210,7 @@
         this.schemas.set( schema );
 
         List producers = ProducerTypeEnum.list();
+        
         for ( int ii = 0; ii < producers.size(); ii++ )
         {
             ProducerTypeEnum producerType = ( ProducerTypeEnum ) producers.get( ii );
@@ -383,5 +386,19 @@
             ne.setRootCause( e );
             throw ne;
         }
+    }
+    
+    public String toString()
+    {
+    	StringBuffer sb = new StringBuffer();
+    	
+    	sb.append( "BootstrapSchemaLoader : {\n");
+    	
+    	sb.append( "  Schemas : {" ).append( ( BootstrapSchema ) this.schemas.get() ).append(
"}\n" );
+    	
+    	sb.append( "  Registries : {" ).append( ( BootstrapRegistries ) this.registries.get()
).append( "}\n" );
+    	
+    	sb.append( "}\n" );
+    	return sb.toString();
     }
 }



Mime
View raw message