|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.schema.GlobalComparatorRegistry
A simple POJO implementation of the ComparatorRegistry service interface.
Constructor Summary | |
GlobalComparatorRegistry(BootstrapComparatorRegistry bootstrap)
Creates a default ComparatorRegistry by initializing the map and the montior. |
Method Summary | |
java.lang.String |
getSchemaName(java.lang.String oid)
Gets the name of the schema this schema object is associated with. |
boolean |
hasComparator(java.lang.String oid)
Checks to see if a Comparator exists. |
java.util.Comparator |
lookup(java.lang.String oid)
Looks up a Comparator by its unique Object Identifier. |
void |
register(java.lang.String schema,
java.lang.String oid,
java.util.Comparator comparator)
Registers a Comparator with this registry. |
void |
setMonitor(ComparatorRegistryMonitor monitor)
Sets the monitor used by this registry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GlobalComparatorRegistry(BootstrapComparatorRegistry bootstrap)
Method Detail |
public void setMonitor(ComparatorRegistryMonitor monitor)
monitor
- the monitor to set for registry event callbackspublic void register(java.lang.String schema, java.lang.String oid, java.util.Comparator comparator) throws javax.naming.NamingException
ComparatorRegistry
register
in interface ComparatorRegistry
schema
- the name of the schema the comparator is associated withoid
- the object identifiercomparator
- the Comparator to register
javax.naming.NamingException
- if the Comparator is already registered or the
registration operation is not supportedpublic java.util.Comparator lookup(java.lang.String oid) throws javax.naming.NamingException
ComparatorRegistry
lookup
in interface ComparatorRegistry
oid
- the object identifier
javax.naming.NamingException
- if there is a backing store failure or the
Comparator does not exist.public boolean hasComparator(java.lang.String oid)
ComparatorRegistry
hasComparator
in interface ComparatorRegistry
oid
- the object identifier
public java.lang.String getSchemaName(java.lang.String oid) throws javax.naming.NamingException
ComparatorRegistry
getSchemaName
in interface ComparatorRegistry
oid
- the object identifier
javax.naming.NamingException
- if the schema object does not exist
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |