You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2009/09/02 17:59:13 UTC
svn commit: r810583 -
/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/MatchingRule.java
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 );
+ }
}
}