|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jsieve.ConfigurationManager
public class ConfigurationManager
ConfigurationManager
parses the XML statements
in the Sieve configuration file and translates them to Java objects.
The Sieve configuration is read from 3 properties files
org/apache/jsieve/commandsmap.properties
org/apache/jsieve/testsmap.properties
org/apache/jsieve/comparatorsmap.properties
They are located by searching the classpath of the current ClassLoader.
Each configuration manager instance may be safely accessed by concurrent threads.
The managers constructed by
and the SieveFactory
built by
may be safely shared by multiple threads.
Constructor Summary | |
---|---|
ConfigurationManager()
Constructor for ConfigurationManager. |
Method Summary | |
---|---|
SieveFactory |
build()
|
CommandManager |
getCommandManager()
|
java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> |
getCommandMap()
Method getCommandMap answers a Map of Command names and their associated class names, lazily initialized if required. |
ComparatorManager |
getComparatorManager()
|
java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> |
getComparatorMap()
Method getComparatorMap answers a Map of Comparator names and their associated class names, lazily initialized if required. |
int |
getInitialConcurrencyLevel()
Gets the current initial size for the ConcurrentHashMap concurrency level. |
org.apache.commons.logging.Log |
getLog()
|
TestManager |
getTestManager()
|
java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> |
getTestMap()
Method getTestMap answers a Map of Test names and their associated class names, lazily initialized if required. |
void |
setInitialConcurrencyLevel(int initialConcurrencyLevel)
Sets the current initial size for the ConcurrentHashMap concurrency level. |
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 |
---|
public ConfigurationManager() throws SieveConfigurationException
SieveConfigurationException
Method Detail |
---|
public int getInitialConcurrencyLevel()
ConcurrentHashMap
concurrency level.
public void setInitialConcurrencyLevel(int initialConcurrencyLevel)
ConcurrentHashMap
concurrency level.
initialConcurrencyLevel
- number of concurrent threads estimated for initial sizingpublic java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> getCommandMap()
public java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> getTestMap()
public java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> getComparatorMap()
public ComparatorManager getComparatorManager()
public CommandManager getCommandManager()
public TestManager getTestManager()
public org.apache.commons.logging.Log getLog()
public void setLog(org.apache.commons.logging.Log log)
public SieveFactory build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |