|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jsieve.ComparatorManagerImpl
public class ComparatorManagerImpl
Maps Comparator names to configured Comparator implementation classes.
Instances may safely be accessed concurrently by multiple threads.
Constructor Summary | |
---|---|
ComparatorManagerImpl(java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> classNameMap)
Constructs a manager with the standard comparators implicitly defined. |
|
ComparatorManagerImpl(java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> classNameMap,
java.util.concurrent.CopyOnWriteArraySet<java.lang.String> implicitlyDeclared)
Constructor for ComparatorManager. |
Method Summary | |
---|---|
Comparator |
getComparator(java.lang.String name)
Method newInstance answers an instance of the class to which a Comparator name is mapped. |
boolean |
isImplicitlyDeclared(java.lang.String comparatorName)
Is an explicit declaration in a require statement
unnecessary for this comparator? |
boolean |
isSupported(java.lang.String name)
Is the comparator with the given name supported? |
java.lang.Class |
lookup(java.lang.String name)
Method lookup answers the class to which a Comparator name is mapped. |
static java.util.concurrent.CopyOnWriteArraySet<java.lang.String> |
standardDefinedComparators()
Constructs a set containing the names of those comparisons for which require
is not necessary before usage, according to RFC5228. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComparatorManagerImpl(java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> classNameMap)
classNameMap
- not nullpublic ComparatorManagerImpl(java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> classNameMap, java.util.concurrent.CopyOnWriteArraySet<java.lang.String> implicitlyDeclared)
classNameMap
- indexes names of implementation classes against logical names, not nullimplicitlyDeclared
- names of those comparisons for which require
is not necessary before usageMethod Detail |
---|
public static java.util.concurrent.CopyOnWriteArraySet<java.lang.String> standardDefinedComparators()
require
is not necessary before usage, according to RFC5228.
See RFC5228, 2.7.3 Comparators.
public boolean isImplicitlyDeclared(java.lang.String comparatorName)
require
statement
unnecessary for this comparator?
isImplicitlyDeclared
in interface ComparatorManager
comparatorName
- not null
require
statementpublic 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 getComparator(java.lang.String name) throws LookupException
Method newInstance answers an instance of the class to which a Comparator name is mapped.
getComparator
in interface ComparatorManager
name
- -
The name of the Comparator
LookupException
public boolean isSupported(java.lang.String name)
ComparatorManager
isSupported
in interface ComparatorManager
name
- not null
ComparatorManager.isSupported(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |