com.atlassian.user.configuration.xml
Class XMLDefaultsParser

java.lang.Object
  extended by com.atlassian.user.configuration.xml.XMLDefaultsParser

public class XMLDefaultsParser
extends Object

Loads the default configuration for the available atlassian-user repositories. These defaults define fall-through values for any configuration option not specified in the proper atlassian-user config.

The parser will search the classpath roots for all files matching the defaults config file name (atlassian-user-defaults.xml), and load the default configuration values from them. If defaults are configured for the same repository type in multiple defaults files, the behaviour is undefined.

For an example of the file format of the defaults file, just look at the atlassian-user-defaults.xml included in atlassian-user.


Field Summary
static String DEFAULTS_FILE_NAME
           
 
Constructor Summary
XMLDefaultsParser()
           
XMLDefaultsParser(String defaultsFileName)
           
XMLDefaultsParser(String[] defaultsFileNames)
           
 
Method Summary
 Map<String,String> getDefaultClassesConfigForKey(String key)
           
 Map<String,String> getDefaultParameterConfigForKey(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULTS_FILE_NAME

public static final String DEFAULTS_FILE_NAME
See Also:
Constant Field Values
Constructor Detail

XMLDefaultsParser

public XMLDefaultsParser()
                  throws IOException,
                         org.dom4j.DocumentException
Throws:
IOException
org.dom4j.DocumentException

XMLDefaultsParser

public XMLDefaultsParser(String defaultsFileName)
                  throws IOException,
                         org.dom4j.DocumentException
Throws:
IOException
org.dom4j.DocumentException

XMLDefaultsParser

public XMLDefaultsParser(String[] defaultsFileNames)
                  throws org.dom4j.DocumentException,
                         IOException
Throws:
org.dom4j.DocumentException
IOException
Method Detail

getDefaultClassesConfigForKey

public Map<String,String> getDefaultClassesConfigForKey(String key)
                                                 throws org.dom4j.DocumentException,
                                                        IOException
Throws:
org.dom4j.DocumentException
IOException

getDefaultParameterConfigForKey

public Map<String,String> getDefaultParameterConfigForKey(String key)


Copyright © 2005-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.