1 17 package org.apache.ldap.server.schema.bootstrap; 18 19 20 import jdbm.helper.StringComparator; 21 import org.apache.ldap.common.schema.ComparableComparator; 22 import org.apache.ldap.common.util.BigIntegerComparator; 23 24 import javax.naming.NamingException ; 25 import java.util.Comparator ; 26 27 28 29 35 public class ApacheComparatorProducer extends AbstractBootstrapProducer 36 { 37 public ApacheComparatorProducer() 38 { 39 super( ProducerTypeEnum.COMPARATOR_PRODUCER ); 40 } 41 42 43 47 48 51 public void produce( BootstrapRegistries registries, ProducerCallback cb ) 52 throws NamingException 53 { 54 Comparator comparator; 55 56 comparator = new ComparableComparator(); 58 cb.schemaObjectProduced( this, "1.2.6.1.4.1.18060.1.1.1.2.1", comparator ); 59 60 comparator = new BigIntegerComparator(); 62 cb.schemaObjectProduced( this, "1.2.6.1.4.1.18060.1.1.1.2.2", comparator ); 63 64 comparator = new StringComparator(); 66 cb.schemaObjectProduced( this, "1.2.6.1.4.1.18060.1.1.1.2.3", comparator ); 67 68 } 69 } 70 | Popular Tags |