directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r810583 - /directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/MatchingRule.java
Date Wed, 02 Sep 2009 15:59:13 GMT
Author: elecharny
Date: Wed Sep  2 15:59:13 2009
New Revision: 810583

URL: http://svn.apache.org/viewvc?rev=810583&view=rev
Log:
Update the LdapSyntax reference when applying the registries

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

Modified: directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/MatchingRule.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/MatchingRule.java?rev=810583&r1=810582&r2=810583&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/MatchingRule.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/MatchingRule.java
Wed Sep  2 15:59:13 2009
@@ -119,7 +119,7 @@
         {
             try
             {
-                // Gets the associated C 
+                // Gets the associated Comparator 
                 ldapComparator = (LdapComparator<? super Object>)registries.getComparatorRegistry().lookup(
oid );
             }
             catch ( NamingException ne )
@@ -129,13 +129,23 @@
     
             try
             {
-                // Gets the associated N 
+                // Gets the associated N ormalizer
                 normalizer = registries.getNormalizerRegistry().lookup( oid );
             }
             catch ( NamingException ne )
             {
                 normalizer = new NoOpNormalizer( oid );
             }
+            
+            try
+            {
+                // Get the associated LdapSyntax
+                ldapSyntax = registries.getLdapSyntaxRegistry().lookup( oid );
+            }
+            catch ( NamingException ne )
+            {
+                ldapSyntax = new LdapSyntax( oid );
+            }
         }
     }
     



Mime
View raw message