directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r809443 - /directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java
Date Mon, 31 Aug 2009 01:03:05 GMT
Author: akarasulu
Date: Mon Aug 31 01:03:05 2009
New Revision: 809443

URL: http://svn.apache.org/viewvc?rev=809443&view=rev
Log:
making the Registries implementation implement the SchemaLoaderListener interface to know
when a full schema has been loaded into it so it can update its own records

Modified:
    directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java

Modified: directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java?rev=809443&r1=809442&r2=809443&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java
Mon Aug 31 01:03:05 2009
@@ -41,7 +41,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class Registries
+public class Registries implements SchemaLoaderListener
 {
     /**
      * A String name to Schema object map for those schemas loaded into this
@@ -613,6 +613,12 @@
 
         return isSuccess;
     }
+
+
+	public void schemaLoaded( Schema schema ) 
+	{
+		this.loadedSchemas.put( schema.getSchemaName(), schema );
+	}
     
     
     /**



Mime
View raw message