Java Doc for DefaultConfigurationBuilder.java in  » Library » Apache-commons-configuration-1.4-src » org » apache » commons » configuration » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Library » Apache commons configuration 1.4 src » org.apache.commons.configuration 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.commons.configuration.AbstractConfiguration
   org.apache.commons.configuration.HierarchicalConfiguration
      org.apache.commons.configuration.AbstractHierarchicalFileConfiguration
         org.apache.commons.configuration.XMLConfiguration
            org.apache.commons.configuration.DefaultConfigurationBuilder

DefaultConfigurationBuilder
public class DefaultConfigurationBuilder extends XMLConfiguration implements ConfigurationBuilder(Code)

A factory class that creates a composite configuration from an XML based configuration definition file.

This class provides an easy and flexible means for loading multiple configuration sources and combining the results into a single configuration object. The sources to be loaded are defined in an XML document that can contain certain tags representing the different supported configuration classes. If such a tag is found, the corresponding Configuration class is instantiated and initialized using the classes of the beanutils package (namely org.apache.commons.configuration.beanutils.XMLBeanDeclaration XMLBeanDeclaration will be used to extract the configuration's initialization parameters, which allows for complex initialization szenarios).

It is also possible to add custom tags to the configuration definition file. For this purpose register your own ConfigurationProvider implementation for your tag using the addConfigurationProvider() method. This provider will then be called when the corresponding custom tag is detected. For the default configuration classes providers are already registered.

The configuration definition file has the following basic structure:

 <configuration>
 <header>
 <!-- Optional meta information about the composite configuration -->
 </header>
 <override>
 <!-- Declarations for override configurations -->
 </override>
 <additional>
 <!-- Declarations for union configurations -->
 </additional>
 </configuration>
 

The name of the root element (here configuration) is arbitrary. There are two sections (both of them are optional) for declaring override and additional configurations. Configurations in the former section are evaluated in the order of their declaration, and properties of configurations declared earlier hide those of configurations declared later. Configurations in the latter section are combined to a union configuration, i.e. all of their properties are added to a large hierarchical configuration. Configuration declarations that occur as direct children of the root element are treated as override declarations.

Each configuration declaration consists of a tag whose name is associated with a ConfigurationProvider. This can be one of the pre-defined tags like properties, or xml, or a custom tag, for which a configuration provider was registered. Attributes and sub elements with specific initialization parameters can be added. There are some reserved attributes with a special meaning that can be used in every configuration declaration:

Attribute Meaning
config-name Allows to specify a name for this configuration. This name can be used to obtain a reference to the configuration from the resulting combined configuration (see below).
config-at With this attribute an optional prefix can be specified for the properties of the corresponding configuration.
config-optional Declares a configuration as optional. This means that errors that occur when creating the configuration are silently ignored.

The optional header section can contain some meta data about the created configuration itself. For instance, it is possible to set further properties of the NodeCombiner objects used for constructing the resulting configuration.

The configuration object returned by this builder is an instance of the CombinedConfiguration class. The return value of the getConfiguration() method can be casted to this type, and the getConfiguration(boolean) method directly declares CombinedConfiguration as return type. This allows for convenient access to the configuration objects maintained by the combined configuration (e.g. for updates of single configuration objects). It has also the advantage that the properties stored in all declared configuration objects are collected and transformed into a single hierarchical structure, which can be accessed using different expression engines.

All declared override configurations are directly added to the resulting combined configuration. If they are given names (using the config-name attribute), they can directly be accessed using the getConfiguration(String) method of CombinedConfiguration. The additional configurations are alltogether added to another combined configuration, which uses a union combiner. Then this union configuration is added to the resulting combined configuration under the name defined by the ADDITIONAL_NAME constant.

Implementation note: This class is not thread-safe. Especially the getConfiguration() methods should be called by a single thread only.


since:
   1.3
author:
   author:
   href="http://jakarta.apache.org/commons/configuration/team-list.html">Commons
author:
   Configuration team
version:
   $Id: DefaultConfigurationBuilder.java 507219 2007-02-13 21:02:09Z oheger $

Inner Class :public static class ConfigurationProvider extends DefaultBeanFactory
Inner Class :public static class ConfigurationDeclaration extends XMLBeanDeclaration
Inner Class :static class ConfigurationBeanFactory implements BeanFactory
Inner Class :public static class FileConfigurationProvider extends ConfigurationProvider
Inner Class :static class FileExtensionConfigurationProvider extends FileConfigurationProvider
Inner Class :static class ConfigurationBuilderProvider extends ConfigurationProvider

Field Summary
final public static  StringADDITIONAL_NAME
     Constant for the name of the additional configuration.
final static  StringATTR_AT
     Constant for the at attribute without the reserved prefix.
final static  StringATTR_ATNAME
     Constant for the name of the at attribute.
final static  StringATTR_AT_RES
     Constant for the reserved at attribute.
final static  StringATTR_FILENAME
     Constant for the file name attribute.
final static  StringATTR_FORCECREATE
     Constant for the forceCreate attribute.
final static  StringATTR_NAME
     Constant for the reserved name attribute.
final static  StringATTR_OPTIONAL
     Constant for the optional attribute without the reserved prefix.
final static  StringATTR_OPTIONALNAME
     Constant for the name of the optional attribute.
final static  StringATTR_OPTIONAL_RES
     Constant for the reserved optional attribute.
final static  StringCONFIG_BEAN_FACTORY_NAME
     Constant for the name of the configuration bean factory.
final static  String[]CONFIG_SECTIONS
     An array with the names of top level configuration sections.
final static  StringEXT_XML
     Constant for the XML file extension.
final static  StringKEY_ADDITIONAL_LIST
     Constant for the key that points to the list nodes definition of the additional combiner.
final static  StringKEY_COMBINER
     Constant for the key of the combiner in the result declaration.
final static  StringKEY_OVERRIDE
     Constant for an expression that selects override configurations in the override section.
final static  StringKEY_OVERRIDE_LIST
     Constant for the key that points to the list nodes definition of the override combiner.
final static  StringKEY_RESULT
     Constant for the key of the result declaration.
final static  StringKEY_UNION
     Constant for an expression that selects the union configurations.
final static  StringSEC_HEADER
     Constant for the name of the header section.

Constructor Summary
public  DefaultConfigurationBuilder()
     Creates a new instance of DefaultConfigurationBuilder.
public  DefaultConfigurationBuilder(File file)
     Creates a new instance of DefaultConfigurationBuilder and sets the specified configuration definition file.
public  DefaultConfigurationBuilder(String fileName)
     Creates a new instance of DefaultConfigurationBuilder and sets the specified configuration definition file.
public  DefaultConfigurationBuilder(URL url)
     Creates a new instance of DefaultConfigurationBuilder and sets the specified configuration definition file.

Method Summary
public  voidaddConfigurationProvider(String tagName, ConfigurationProvider provider)
     Adds a configuration provider for the specified tag.
protected  CombinedConfigurationcreateResultConfiguration()
     Creates the resulting combined configuration.
public  ConfigurationgetConfiguration()
     Returns the configuration provided by this builder.
public  CombinedConfigurationgetConfiguration(boolean load)
     Returns the configuration provided by this builder.
public  StringgetConfigurationBasePath()
     Returns the base path for the configuration sources to load.
protected  voidinitCombinedConfiguration(CombinedConfiguration config, List containedConfigs, String keyListNodes)
     Initializes a combined configuration for the configurations of a specific section.
protected  Objectinterpolate(Object value)
     Performs interpolation.
public  ConfigurationProviderproviderForTag(String tagName)
     Returns the configuration provider for the given tag.
protected  voidregisterDefaultProviders()
     Registers the default configuration providers supported by this class. This method will be called during initialization.
public  ConfigurationProviderremoveConfigurationProvider(String tagName)
     Removes the configuration provider for the specified tag name.
public  voidsetConfigurationBasePath(String configurationBasePath)
     Sets the base path for the configuration sources to load.

Field Detail
ADDITIONAL_NAME
final public static String ADDITIONAL_NAME(Code)
Constant for the name of the additional configuration. If the configuration definition file contains an additional section, a special union configuration is created and added under this name to the resulting combined configuration.



ATTR_AT
final static String ATTR_AT(Code)
Constant for the at attribute without the reserved prefix.



ATTR_ATNAME
final static String ATTR_ATNAME(Code)
Constant for the name of the at attribute.



ATTR_AT_RES
final static String ATTR_AT_RES(Code)
Constant for the reserved at attribute.



ATTR_FILENAME
final static String ATTR_FILENAME(Code)
Constant for the file name attribute.



ATTR_FORCECREATE
final static String ATTR_FORCECREATE(Code)
Constant for the forceCreate attribute.



ATTR_NAME
final static String ATTR_NAME(Code)
Constant for the reserved name attribute.



ATTR_OPTIONAL
final static String ATTR_OPTIONAL(Code)
Constant for the optional attribute without the reserved prefix.



ATTR_OPTIONALNAME
final static String ATTR_OPTIONALNAME(Code)
Constant for the name of the optional attribute.



ATTR_OPTIONAL_RES
final static String ATTR_OPTIONAL_RES(Code)
Constant for the reserved optional attribute.



CONFIG_BEAN_FACTORY_NAME
final static String CONFIG_BEAN_FACTORY_NAME(Code)
Constant for the name of the configuration bean factory.



CONFIG_SECTIONS
final static String[] CONFIG_SECTIONS(Code)
An array with the names of top level configuration sections.



EXT_XML
final static String EXT_XML(Code)
Constant for the XML file extension.



KEY_ADDITIONAL_LIST
final static String KEY_ADDITIONAL_LIST(Code)
Constant for the key that points to the list nodes definition of the additional combiner.



KEY_COMBINER
final static String KEY_COMBINER(Code)
Constant for the key of the combiner in the result declaration.



KEY_OVERRIDE
final static String KEY_OVERRIDE(Code)
Constant for an expression that selects override configurations in the override section.



KEY_OVERRIDE_LIST
final static String KEY_OVERRIDE_LIST(Code)
Constant for the key that points to the list nodes definition of the override combiner.



KEY_RESULT
final static String KEY_RESULT(Code)
Constant for the key of the result declaration. This key can point to a bean declaration, which defines properties of the resulting combined configuration.



KEY_UNION
final static String KEY_UNION(Code)
Constant for an expression that selects the union configurations.



SEC_HEADER
final static String SEC_HEADER(Code)
Constant for the name of the header section.




Constructor Detail
DefaultConfigurationBuilder
public DefaultConfigurationBuilder()(Code)
Creates a new instance of DefaultConfigurationBuilder. A configuration definition file is not yet loaded. Use the diverse setter methods provided by file based configurations to specify the configuration definition file.



DefaultConfigurationBuilder
public DefaultConfigurationBuilder(File file)(Code)
Creates a new instance of DefaultConfigurationBuilder and sets the specified configuration definition file.
Parameters:
  file - the configuration definition file



DefaultConfigurationBuilder
public DefaultConfigurationBuilder(String fileName) throws ConfigurationException(Code)
Creates a new instance of DefaultConfigurationBuilder and sets the specified configuration definition file.
Parameters:
  fileName - the name of the configuration definition file
throws:
  ConfigurationException - if an error occurs when the file is loaded



DefaultConfigurationBuilder
public DefaultConfigurationBuilder(URL url) throws ConfigurationException(Code)
Creates a new instance of DefaultConfigurationBuilder and sets the specified configuration definition file.
Parameters:
  url - the URL to the configuration definition file
throws:
  ConfigurationException - if an error occurs when the file is loaded




Method Detail
addConfigurationProvider
public void addConfigurationProvider(String tagName, ConfigurationProvider provider)(Code)
Adds a configuration provider for the specified tag. Whenever this tag is encountered in the configuration definition file this provider will be called to create the configuration object.
Parameters:
  tagName - the name of the tag in the configuration definition file
Parameters:
  provider - the provider for this tag



createResultConfiguration
protected CombinedConfiguration createResultConfiguration() throws ConfigurationException(Code)
Creates the resulting combined configuration. This method is called by getConfiguration(). It checks whether the header section of the configuration definition file contains a result element. If this is the case, it will be used to initialize the properties of the newly created configuration object. the resulting configuration object
throws:
  ConfigurationException - if an error occurs



getConfiguration
public Configuration getConfiguration() throws ConfigurationException(Code)
Returns the configuration provided by this builder. Loads and parses the configuration definition file and creates instances for the declared configurations. the configuration
throws:
  ConfigurationException - if an error occurs



getConfiguration
public CombinedConfiguration getConfiguration(boolean load) throws ConfigurationException(Code)
Returns the configuration provided by this builder. If the boolean parameter is true, the configuration definition file will be loaded. It will then be parsed, and instances for the declared configurations will be created.
Parameters:
  load - a flag whether the configuration definition file should beloaded; a value of false would make sense if the file has alreadybeen created or its content was manipulated using some of the propertyaccessor methods the configuration
throws:
  ConfigurationException - if an error occurs



getConfigurationBasePath
public String getConfigurationBasePath()(Code)
Returns the base path for the configuration sources to load. This path is used to resolve relative paths in the configuration definition file. the base path for configuration sources



initCombinedConfiguration
protected void initCombinedConfiguration(CombinedConfiguration config, List containedConfigs, String keyListNodes) throws ConfigurationException(Code)
Initializes a combined configuration for the configurations of a specific section. This method is called for the override and for the additional section (if it exists).
Parameters:
  config - the configuration to be initialized
Parameters:
  containedConfigs - the list with the declaratinos of the containedconfigurations
Parameters:
  keyListNodes - a list with the declaration of list nodes
throws:
  ConfigurationException - if an error occurs



interpolate
protected Object interpolate(Object value)(Code)
Performs interpolation. This method will not only take this configuration instance into account (which is the one that loaded the configuration definition file), but also the so far constructed combined configuration. So variables can be used that point to properties that are defined in configuration sources loaded by this builder.
Parameters:
  value - the value to be interpolated the interpolated value



providerForTag
public ConfigurationProvider providerForTag(String tagName)(Code)
Returns the configuration provider for the given tag.
Parameters:
  tagName - the name of the tag the provider that was registered for this tag or null ifthere is none



registerDefaultProviders
protected void registerDefaultProviders()(Code)
Registers the default configuration providers supported by this class. This method will be called during initialization. It registers configuration providers for the tags that are supported by default.



removeConfigurationProvider
public ConfigurationProvider removeConfigurationProvider(String tagName)(Code)
Removes the configuration provider for the specified tag name.
Parameters:
  tagName - the tag name the removed configuration provider or null if none wasregistered for that tag



setConfigurationBasePath
public void setConfigurationBasePath(String configurationBasePath)(Code)
Sets the base path for the configuration sources to load. Normally a base path need not to be set because it is determined by the location of the configuration definition file to load. All relative pathes in this file are resolved relative to this file. Setting a base path makes sense if such relative pathes should be otherwise resolved, e.g. if the configuration file is loaded from the class path and all sub configurations it refers to are stored in a special config directory.
Parameters:
  configurationBasePath - the new base path to set



Methods inherited from org.apache.commons.configuration.XMLConfiguration
public void clear()(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
protected FileConfigurationDelegate createDelegate()(Code)(Java Doc)
protected Document createDocument() throws ConfigurationException(Code)(Java Doc)
protected DocumentBuilder createDocumentBuilder() throws ParserConfigurationException(Code)(Java Doc)
protected Node createNode(String name)(Code)(Java Doc)
protected Transformer createTransformer() throws TransformerException(Code)(Java Doc)
public Document getDocument()(Code)(Java Doc)
public DocumentBuilder getDocumentBuilder()(Code)(Java Doc)
public String getPublicID()(Code)(Java Doc)
public String getRootElementName()(Code)(Java Doc)
public String getSystemID()(Code)(Java Doc)
public void initProperties(Document document, boolean elemRefs)(Code)(Java Doc)
public boolean isValidating()(Code)(Java Doc)
public void load(InputStream in) throws ConfigurationException(Code)(Java Doc)
public void load(Reader in) throws ConfigurationException(Code)(Java Doc)
public void save(Writer writer) throws ConfigurationException(Code)(Java Doc)
public void setDocumentBuilder(DocumentBuilder documentBuilder)(Code)(Java Doc)
public void setPublicID(String publicID)(Code)(Java Doc)
public void setRootElementName(String name)(Code)(Java Doc)
public void setSystemID(String systemID)(Code)(Java Doc)
public void setValidating(boolean validating)(Code)(Java Doc)

Methods inherited from org.apache.commons.configuration.AbstractHierarchicalFileConfiguration
protected void addPropertyDirect(String key, Object obj)(Code)(Java Doc)
public void clearProperty(String key)(Code)(Java Doc)
public void clearTree(String key)(Code)(Java Doc)
public void configurationChanged(ConfigurationEvent event)(Code)(Java Doc)
public boolean containsKey(String key)(Code)(Java Doc)
protected FileConfigurationDelegate createDelegate()(Code)(Java Doc)
protected List fetchNodeList(String key)(Code)(Java Doc)
public String getBasePath()(Code)(Java Doc)
protected FileConfigurationDelegate getDelegate()(Code)(Java Doc)
public String getEncoding()(Code)(Java Doc)
public File getFile()(Code)(Java Doc)
public String getFileName()(Code)(Java Doc)
public Iterator getKeys(String prefix)(Code)(Java Doc)
public Object getProperty(String key)(Code)(Java Doc)
public ReloadingStrategy getReloadingStrategy()(Code)(Java Doc)
public URL getURL()(Code)(Java Doc)
public boolean isAutoSave()(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
public void load() throws ConfigurationException(Code)(Java Doc)
public void load(String fileName) throws ConfigurationException(Code)(Java Doc)
public void load(File file) throws ConfigurationException(Code)(Java Doc)
public void load(URL url) throws ConfigurationException(Code)(Java Doc)
public void load(InputStream in) throws ConfigurationException(Code)(Java Doc)
public void load(InputStream in, String encoding) throws ConfigurationException(Code)(Java Doc)
public void reload()(Code)(Java Doc)
public void save() throws ConfigurationException(Code)(Java Doc)
public void save(String fileName) throws ConfigurationException(Code)(Java Doc)
public void save(File file) throws ConfigurationException(Code)(Java Doc)
public void save(URL url) throws ConfigurationException(Code)(Java Doc)
public void save(OutputStream out) throws ConfigurationException(Code)(Java Doc)
public void save(OutputStream out, String encoding) throws ConfigurationException(Code)(Java Doc)
public void setAutoSave(boolean autoSave)(Code)(Java Doc)
public void setBasePath(String basePath)(Code)(Java Doc)
protected void setDelegate(FileConfigurationDelegate delegate)(Code)(Java Doc)
public void setEncoding(String encoding)(Code)(Java Doc)
public void setFile(File file)(Code)(Java Doc)
public void setFileName(String fileName)(Code)(Java Doc)
public void setProperty(String key, Object value)(Code)(Java Doc)
public void setReloadingStrategy(ReloadingStrategy strategy)(Code)(Java Doc)
public void setURL(URL url)(Code)(Java Doc)

Fields inherited from org.apache.commons.configuration.HierarchicalConfiguration
final public static int EVENT_ADD_NODES(Code)(Java Doc)
final public static int EVENT_CLEAR_TREE(Code)(Java Doc)

Methods inherited from org.apache.commons.configuration.HierarchicalConfiguration
public void addNodes(String key, Collection nodes)(Code)(Java Doc)
protected void addPropertyDirect(String key, Object obj)(Code)(Java Doc)
protected void clearNode(Node node)(Code)(Java Doc)
protected void clearNode(ConfigurationNode node)(Code)(Java Doc)
public void clearProperty(String key)(Code)(Java Doc)
protected static void clearReferences(ConfigurationNode node)(Code)(Java Doc)
public void clearTree(String key)(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public SubnodeConfiguration configurationAt(String key)(Code)(Java Doc)
public List configurationsAt(String key)(Code)(Java Doc)
public boolean containsKey(String key)(Code)(Java Doc)
protected Node createAddPath(ConfigurationKey.KeyIterator keyIt, Node root)(Code)(Java Doc)
protected Node createNode(String name)(Code)(Java Doc)
protected SubnodeConfiguration createSubnodeConfiguration(ConfigurationNode node)(Code)(Java Doc)
protected Node fetchAddNode(ConfigurationKey.KeyIterator keyIt, Node startNode)(Code)(Java Doc)
protected List fetchNodeList(String key)(Code)(Java Doc)
protected Node findLastPathNode(ConfigurationKey.KeyIterator keyIt, Node node)(Code)(Java Doc)
protected void findPropertyNodes(ConfigurationKey.KeyIterator keyPart, Node node, Collection nodes)(Code)(Java Doc)
public static ExpressionEngine getDefaultExpressionEngine()(Code)(Java Doc)
public ExpressionEngine getExpressionEngine()(Code)(Java Doc)
public Iterator getKeys()(Code)(Java Doc)
public Iterator getKeys(String prefix)(Code)(Java Doc)
public int getMaxIndex(String key)(Code)(Java Doc)
public Object getProperty(String key)(Code)(Java Doc)
public Node getRoot()(Code)(Java Doc)
public ConfigurationNode getRootNode()(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
protected boolean nodeDefined(Node node)(Code)(Java Doc)
protected boolean nodeDefined(ConfigurationNode node)(Code)(Java Doc)
protected void removeNode(Node node)(Code)(Java Doc)
protected void removeNode(ConfigurationNode node)(Code)(Java Doc)
public static void setDefaultExpressionEngine(ExpressionEngine engine)(Code)(Java Doc)
public void setExpressionEngine(ExpressionEngine expressionEngine)(Code)(Java Doc)
public void setProperty(String key, Object value)(Code)(Java Doc)
public void setRoot(Node node)(Code)(Java Doc)
public void setRootNode(ConfigurationNode rootNode)(Code)(Java Doc)
public Configuration subset(String prefix)(Code)(Java Doc)

Fields inherited from org.apache.commons.configuration.AbstractConfiguration
final protected static String END_TOKEN(Code)(Java Doc)
final public static int EVENT_ADD_PROPERTY(Code)(Java Doc)
final public static int EVENT_CLEAR(Code)(Java Doc)
final public static int EVENT_CLEAR_PROPERTY(Code)(Java Doc)
final public static int EVENT_READ_PROPERTY(Code)(Java Doc)
final public static int EVENT_SET_PROPERTY(Code)(Java Doc)
final protected static String START_TOKEN(Code)(Java Doc)

Methods inherited from org.apache.commons.configuration.AbstractConfiguration
public void addErrorLogListener()(Code)(Java Doc)
public void addProperty(String key, Object value)(Code)(Java Doc)
abstract protected void addPropertyDirect(String key, Object value)(Code)(Java Doc)
public void clear()(Code)(Java Doc)
public void clearProperty(String key)(Code)(Java Doc)
protected void clearPropertyDirect(String key)(Code)(Java Doc)
abstract public boolean containsKey(String key)(Code)(Java Doc)
protected ConfigurationInterpolator createInterpolator()(Code)(Java Doc)
public BigDecimal getBigDecimal(String key)(Code)(Java Doc)
public BigDecimal getBigDecimal(String key, BigDecimal defaultValue)(Code)(Java Doc)
public BigInteger getBigInteger(String key)(Code)(Java Doc)
public BigInteger getBigInteger(String key, BigInteger defaultValue)(Code)(Java Doc)
public boolean getBoolean(String key)(Code)(Java Doc)
public boolean getBoolean(String key, boolean defaultValue)(Code)(Java Doc)
public Boolean getBoolean(String key, Boolean defaultValue)(Code)(Java Doc)
public byte getByte(String key)(Code)(Java Doc)
public byte getByte(String key, byte defaultValue)(Code)(Java Doc)
public Byte getByte(String key, Byte defaultValue)(Code)(Java Doc)
public static char getDefaultListDelimiter()(Code)(Java Doc)
public static char getDelimiter()(Code)(Java Doc)
public double getDouble(String key)(Code)(Java Doc)
public double getDouble(String key, double defaultValue)(Code)(Java Doc)
public Double getDouble(String key, Double defaultValue)(Code)(Java Doc)
public float getFloat(String key)(Code)(Java Doc)
public float getFloat(String key, float defaultValue)(Code)(Java Doc)
public Float getFloat(String key, Float defaultValue)(Code)(Java Doc)
public int getInt(String key)(Code)(Java Doc)
public int getInt(String key, int defaultValue)(Code)(Java Doc)
public Integer getInteger(String key, Integer defaultValue)(Code)(Java Doc)
public ConfigurationInterpolator getInterpolator()(Code)(Java Doc)
abstract public Iterator getKeys()(Code)(Java Doc)
public Iterator getKeys(String prefix)(Code)(Java Doc)
public List getList(String key)(Code)(Java Doc)
public List getList(String key, List defaultValue)(Code)(Java Doc)
public char getListDelimiter()(Code)(Java Doc)
public Log getLogger()(Code)(Java Doc)
public long getLong(String key)(Code)(Java Doc)
public long getLong(String key, long defaultValue)(Code)(Java Doc)
public Long getLong(String key, Long defaultValue)(Code)(Java Doc)
public Properties getProperties(String key)(Code)(Java Doc)
public Properties getProperties(String key, Properties defaults)(Code)(Java Doc)
public short getShort(String key)(Code)(Java Doc)
public short getShort(String key, short defaultValue)(Code)(Java Doc)
public Short getShort(String key, Short defaultValue)(Code)(Java Doc)
public String getString(String key)(Code)(Java Doc)
public String getString(String key, String defaultValue)(Code)(Java Doc)
public String[] getStringArray(String key)(Code)(Java Doc)
public synchronized StrSubstitutor getSubstitutor()(Code)(Java Doc)
protected String interpolate(String base)(Code)(Java Doc)
protected Object interpolate(Object value)(Code)(Java Doc)
protected String interpolateHelper(String base, List priorVariables)(Code)(Java Doc)
public boolean isDelimiterParsingDisabled()(Code)(Java Doc)
abstract public boolean isEmpty()(Code)(Java Doc)
public boolean isThrowExceptionOnMissing()(Code)(Java Doc)
protected Object resolveContainerStore(String key)(Code)(Java Doc)
public static void setDefaultListDelimiter(char delimiter)(Code)(Java Doc)
public static void setDelimiter(char delimiter)(Code)(Java Doc)
public void setDelimiterParsingDisabled(boolean delimiterParsingDisabled)(Code)(Java Doc)
public void setListDelimiter(char listDelimiter)(Code)(Java Doc)
public void setLogger(Log log)(Code)(Java Doc)
public void setProperty(String key, Object value)(Code)(Java Doc)
public void setThrowExceptionOnMissing(boolean throwExceptionOnMissing)(Code)(Java Doc)
public Configuration subset(String prefix)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.