/** * Add all the Schema's comparators * * @param schema The schema in which the Comparators will be added * @param registries The Registries to process * @throws LdapException If the Comparators cannot be added * @throws IOException If the Comparators cannot be loaded */ private void addComparators( Schema schema, Registries registries ) throws LdapException, IOException { if ( schema.getSchemaLoader() == null ) { return; } for ( Entry entry : schema.getSchemaLoader().loadComparators( schema ) ) { LdapComparator<?> comparator = factory.getLdapComparator( this, entry, registries, schema.getSchemaName() ); addSchemaObject( registries, comparator, schema ); } }
/** * Add all the Schema's comparators * * @param schema The schema in which the Comparators will be added * @param registries The Registries to process * @throws LdapException If the Comparators cannot be added * @throws IOException If the Comparators cannot be loaded */ private void addComparators( Schema schema, Registries registries ) throws LdapException, IOException { if ( schema.getSchemaLoader() == null ) { return; } for ( Entry entry : schema.getSchemaLoader().loadComparators( schema ) ) { LdapComparator<?> comparator = factory.getLdapComparator( this, entry, registries, schema.getSchemaName() ); addSchemaObject( registries, comparator, schema ); } }
/** * Add all the Schema's comparators * * @param schema The schema in which the Comparators will be added * @param registries The Registries to process * @throws LdapException If the Comparators cannot be added * @throws IOException If the Comparators cannot be loaded */ private void addComparators( Schema schema, Registries registries ) throws LdapException, IOException { if ( schema.getSchemaLoader() == null ) { return; } for ( Entry entry : schema.getSchemaLoader().loadComparators( schema ) ) { LdapComparator<?> comparator = factory.getLdapComparator( this, entry, registries, schema.getSchemaName() ); addSchemaObject( registries, comparator, schema ); } }