1 17 package org.apache.ldap.server.schema.bootstrap; 18 19 20 import org.apache.ldap.common.schema.CachingNormalizer; 21 import org.apache.ldap.common.schema.ComparableComparator; 22 import org.apache.ldap.common.schema.DeepTrimNormalizer; 23 import org.apache.ldap.common.schema.NormalizingComparator; 24 25 import javax.naming.NamingException ; 26 import java.util.Comparator ; 27 28 29 38 public class NisComparatorProducer extends AbstractBootstrapProducer 39 { 40 public NisComparatorProducer() 41 { 42 super( ProducerTypeEnum.COMPARATOR_PRODUCER ); 43 } 44 45 46 50 51 54 public void produce( BootstrapRegistries registries, ProducerCallback cb ) 55 throws NamingException 56 { 57 Comparator comparator; 58 59 64 comparator = new NormalizingComparator( 65 new CachingNormalizer( new DeepTrimNormalizer() ), 66 new ComparableComparator() ); 67 cb.schemaObjectProduced( this, "1.3.6.1.4.1.4203.1.2.1", comparator ); 68 } 69 } 70 | Popular Tags |