org.apache.directory.shared.ldap.schema.comparators
Class SerializableComparator<E>

java.lang.Object
  extended by org.apache.directory.shared.ldap.schema.AbstractSchemaObject
      extended by org.apache.directory.shared.ldap.schema.LoadableSchemaObject
          extended by org.apache.directory.shared.ldap.schema.LdapComparator<E>
              extended by org.apache.directory.shared.ldap.schema.comparators.SerializableComparator<E>
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<E>, SchemaObject

public class SerializableComparator<E>
extends LdapComparator<E>

A serializable wrapper around a Comparator which uses delayed initialization of the underlying wrapped comparator which is JIT resolved from a static global registry.

Version:
$Rev: 923524 $
Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.directory.shared.ldap.schema.AbstractSchemaObject
description, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification
 
Constructor Summary
SerializableComparator(java.lang.String matchingRuleOid)
           
 
Method Summary
 int compare(E o1, E o2)
           
 void setSchemaManager(SchemaManager schemaManager)
          Store the SchemaManager in this instance.
 
Methods inherited from class org.apache.directory.shared.ldap.schema.LdapComparator
equals, toString
 
Methods inherited from class org.apache.directory.shared.ldap.schema.LoadableSchemaObject
copy, getBytecode, getFqcn, isValid, registerOid, setBytecode, setFqcn
 
Methods inherited from class org.apache.directory.shared.ldap.schema.AbstractSchemaObject
addExtension, addName, addToRegistries, clear, compareOid, copy, getDescription, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, removeFromRegistries, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setRegistries, setSchemaName, setSpecification
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SerializableComparator

public SerializableComparator(java.lang.String matchingRuleOid)
Method Detail

compare

public int compare(E o1,
                   E o2)
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)

setSchemaManager

public void setSchemaManager(SchemaManager schemaManager)
Description copied from class: LdapComparator
Store the SchemaManager in this instance. It may be necessary for some comparator which needs to have access to the oidNormalizer Map.

Overrides:
setSchemaManager in class LdapComparator<E>
Parameters:
schemaManager - the schemaManager to set


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.