org.apache.jsieve
Class ConfigurationManager

java.lang.Object
  extended by org.apache.jsieve.ConfigurationManager

public class ConfigurationManager
extends java.lang.Object

ConfigurationManager parses the XML statements in the Sieve configuration file and translates them to Java objects.

The Sieve configuration is read from 3 properties file. They are located by searching the classpath of the current ClassLoader. org/apache/jsieve/commandsmap.properties org/apache/jsieve/testsmap.properties org/apache/jsieve/comparatorsmap.properties


Constructor Summary
ConfigurationManager()
          Constructor for ConfigurationManager.
 
Method Summary
 SieveFactory build()
           
 CommandManager getCommandManager()
           
 java.util.Map getCommandMap()
          Method getCommandMap answers a Map of Command names and their associated class names, lazily initialized if required.
 ComparatorManager getComparatorManager()
           
 java.util.Map getComparatorMap()
          Method getComparatorMap answers a Map of Comparator names and their associated class names, lazily initialized if required.
 org.apache.commons.logging.Log getLog()
           
 TestManager getTestManager()
           
 java.util.Map getTestMap()
          Method getTestMap answers a Map of Test names and their associated class names, lazily initialized if required.
 void setLog(org.apache.commons.logging.Log log)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationManager

public ConfigurationManager()
                     throws SieveConfigurationException
Constructor for ConfigurationManager.

Throws:
SieveConfigurationException
Method Detail

getCommandMap

public java.util.Map getCommandMap()
Method getCommandMap answers a Map of Command names and their associated class names, lazily initialized if required.

Returns:
Map

getTestMap

public java.util.Map getTestMap()
Method getTestMap answers a Map of Test names and their associated class names, lazily initialized if required.

Returns:
Map

getComparatorMap

public java.util.Map getComparatorMap()
Method getComparatorMap answers a Map of Comparator names and their associated class names, lazily initialized if required.

Returns:
Map

getComparatorManager

public ComparatorManager getComparatorManager()

getCommandManager

public CommandManager getCommandManager()

getTestManager

public TestManager getTestManager()

getLog

public org.apache.commons.logging.Log getLog()

setLog

public void setLog(org.apache.commons.logging.Log log)

build

public SieveFactory build()


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