org.apache.jsieve
Class ComparatorManagerImpl

java.lang.Object
  extended by org.apache.jsieve.ComparatorManagerImpl
All Implemented Interfaces:
ComparatorManager

public class ComparatorManagerImpl
extends java.lang.Object
implements ComparatorManager

Maps Comparator names to configured Comparator implementation classes.


Constructor Summary
ComparatorManagerImpl(java.util.Map classNameMap)
          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.
 java.lang.Class lookup(java.lang.String name)
           Method lookup answers the class to which a Comparator name is mapped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComparatorManagerImpl

public ComparatorManagerImpl(java.util.Map classNameMap)
Constructor for ComparatorManager.

Method Detail

lookup

public java.lang.Class lookup(java.lang.String name)
                       throws LookupException

Method lookup answers the class to which a Comparator name is mapped.

Parameters:
name - - The name of the Comparator
Returns:
Class - The class of the Comparator
Throws:
LookupException

getComparator

public Comparator getComparator(java.lang.String name)
                         throws LookupException

Method newInstance answers an instance of the class to which a Comparator name is mapped.

Specified by:
getComparator in interface ComparatorManager
Parameters:
name - - The name of the Comparator
Returns:
Class - The class of the Comparator
Throws:
LookupException


Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.