|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jsieve.ComparatorManager
Singleton class ComparatorManager
maps Comparator names to
configured Comparator implementation classes.
Method Summary | |
protected static ComparatorManager |
computeInstance()
Computes a new instance of the receiver. |
protected java.lang.String |
getClassName(java.lang.String name)
Method getClassName answers the name of the class to which a Comparator name is mapped. |
protected java.util.Map |
getClassNameMap()
Method getClassNameMap answers a Map of Comparator names and their class names. |
static ComparatorManager |
getInstance()
Returns the sole instance of the receiver, lazily initialised if required. |
java.lang.Class |
lookup(java.lang.String name)
Method lookup answers the class to which a Comparator name is mapped. |
Comparator |
newInstance(java.lang.String name)
Method newInstance answers an instance of the class to which a Comparator name is mapped. |
static void |
resetInstance()
Resets the sole instance. |
protected static void |
setInstance(ComparatorManager instance)
Sets the sole instance. |
protected static void |
updateInstance()
Updates the sole instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ComparatorManager getInstance()
protected static ComparatorManager computeInstance()
protected static void setInstance(ComparatorManager instance)
instance
- The current instance to setpublic static void resetInstance()
protected static void updateInstance()
public java.lang.Class lookup(java.lang.String name) throws LookupException
Method lookup answers the class to which a Comparator name is mapped.
name
- -
The name of the Comparator
LookupException
public Comparator newInstance(java.lang.String name) throws LookupException
Method newInstance answers an instance of the class to which a Comparator name is mapped.
name
- -
The name of the Comparator
LookupException
protected java.lang.String getClassName(java.lang.String name) throws LookupException
Method getClassName answers the name of the class to which a Comparator name is mapped.
name
- -
The name of the Comparator
LookupException
protected java.util.Map getClassNameMap() throws SieveConfigurationException
SieveConfigurationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |