com.atlassian.user.configuration.xml
Class XMLDefaultsParser

java.lang.Object
  extended bycom.atlassian.user.configuration.xml.XMLDefaultsParser

public class XMLDefaultsParser
extends java.lang.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 java.lang.String DEFAULTS_FILE_NAME
           
 
Constructor Summary
XMLDefaultsParser()
           
XMLDefaultsParser(java.lang.String defaultsFileName)
           
XMLDefaultsParser(java.lang.String[] defaultsFileNames)
           
 
Method Summary
 java.util.Map getDefaultClassesConfigForKey(java.lang.String key)
           
 java.util.Map getDefaultParameterConfigForKey(java.lang.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 java.lang.String DEFAULTS_FILE_NAME
See Also:
Constant Field Values
Constructor Detail

XMLDefaultsParser

public XMLDefaultsParser()
                  throws java.io.IOException,
                         org.dom4j.DocumentException

XMLDefaultsParser

public XMLDefaultsParser(java.lang.String defaultsFileName)
                  throws java.io.IOException,
                         org.dom4j.DocumentException

XMLDefaultsParser

public XMLDefaultsParser(java.lang.String[] defaultsFileNames)
                  throws org.dom4j.DocumentException,
                         java.io.IOException
Method Detail

getDefaultClassesConfigForKey

public java.util.Map getDefaultClassesConfigForKey(java.lang.String key)
                                            throws org.dom4j.DocumentException,
                                                   java.io.IOException
Throws:
org.dom4j.DocumentException
java.io.IOException

getDefaultParameterConfigForKey

public java.util.Map getDefaultParameterConfigForKey(java.lang.String key)


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