org.apache.commons.configuration

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 
org.apache.commons.configuration

The Configuration main package. It contains the definition of the Configuration interface and frequently used implementations like PropertiesConfiguration (dealing with .properties files) or XMLConfiguration that can load XML documents.

$Id: package.html 439648 2006-09-02 20:42:10Z oheger $

Java Source File NameTypeComment
AbstractConfiguration.javaClass

Abstract configuration class.

AbstractFileConfiguration.javaClass

Partial implementation of the FileConfiguration interface. Developpers of file based configuration may want to extend this class, the two methods left to implement are FileConfiguration.load(Reader) and FileConfiguration.save(Writer) .

This base class already implements a couple of ways to specify the location of the file this configuration is based on.

AbstractHierarchicalFileConfiguration.javaClass

Base class for implementing file based hierarchical configurations.

This class serves an analogous purpose as the AbstractFileConfiguration class for non hierarchical configurations.

BaseConfiguration.javaClass Basic configuration classe.
BaseConfigurationXMLReader.javaClass

A specialized SAX2 XML parser that processes configuration objects.

This class mimics to be a SAX compliant XML parser.

BaseNonStringProperties.javaClass Test if non-string properties are handled correctly.
CombinedConfiguration.javaClass

A hierarchical composite configuration class.

This class maintains a list of configuration objects, which can be added using the divers addConfiguration() methods.

CompositeConfiguration.javaClass This Configuration class allows you to add multiple different types of Configuration to this CompositeConfiguration.
Configuration.javaInterface

The main Configuration interface.

This interface allows accessing and manipulating a configuration object. The major part of the methods defined in this interface deals with accessing properties of various data types.

ConfigurationBuilder.javaInterface

Definition of an interface for objects that can create a configuration.

This interface defines an abstract way of creating a Configuration object.

ConfigurationComparator.javaInterface Comparator for configurations interface.
ConfigurationConverter.javaClass Configuration converter.
ConfigurationException.javaClass Any exception that occurs while initializing a Configuration object.
ConfigurationFactory.javaClass

Factory class to create a CompositeConfiguration from a .xml file using Digester.

ConfigurationKey.javaClass

A simple class that supports creation of and iteration on complex configuration keys.

For key creation the class works similar to a StringBuffer: There are several appendXXXX() methods with which single parts of a key can be constructed.

ConfigurationMap.javaClass
ConfigurationRuntimeException.javaClass A configuration related runtime exception.
ConfigurationUtils.javaClass Miscellaneous utility methods for configurations.
ConfigurationXMLReader.javaClass

A base class for "faked" XMLReader classes that transform a configuration object in a set of SAX parsing events.

This class provides dummy implementations for most of the methods defined in the XMLReader interface that are not used for this special purpose.

ConversionException.javaClass Exception thrown when a property is incompatible with the type requested.
DatabaseConfiguration.javaClass Configuration stored in a database.
DataConfiguration.javaClass Decorator providing additional getters for any Configuration.
DefaultConfigurationBuilder.javaClass

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.

FileConfiguration.javaInterface A persistent configuration loaded and saved to a file.
HierarchicalConfiguration.javaClass

A specialized configuration class that extends its base class by the ability of keeping more structure in the stored properties.

There are some sources of configuration data that cannot be stored very well in a BaseConfiguration object because then their structure is lost. This is especially true for XML documents.

HierarchicalConfigurationConverter.javaClass

A base class for converters that transform a normal configuration object into a hierarchical configuration.

This class provides a default mechanism for iterating over the keys in a configuration and to throw corresponding element start and end events.

HierarchicalConfigurationXMLReader.javaClass

A specialized SAX2 XML parser that "parses" hierarchical configuration objects.

This class mimics to be a SAX conform XML parser.

HierarchicalXMLConfiguration.javaClass A specialized hierarchical configuration class that is able to parse XML documents.

The parsed document will be stored keeping its structure.

INIConfiguration.javaClass

An initialization or ini file is a configuration file tpically found on Microsoft's Windows operating system and contains data for Windows based applications.

Although popularized by Windows, ini files can be used on any system or platform due to the fact that they are merely text files that can easily be parsed and modified by both humans and computers.

A typcial ini file could look something like:

[section1]
; this is a comment!
var1 = foo
var2 = bar

[section2]
var1 = doo

The format of ini files is fairly straight forward and is comosed of three components:

  • Sections: Ini files are split into sections, each section starting with a section declaration.
JNDIConfiguration.javaClass This Configuration class allows you to interface with a JNDI datasource. A JNDIConfiguration is read-only, write operations will throw an UnsupportedOperationException.
MapConfiguration.javaClass A Map based Configuration.
MockInitialContextFactory.javaClass A mock implementation of the InitialContextFactory interface.
NonCloneableConfiguration.javaClass A specialized configuration implementation that does not support cloning. This class is only used in some test cases for testing implementations of clone() methods.
NonStringTestHolder.javaClass Pulling out the calls to do the tests so both JUnit and Cactus tests can share.
PropertiesConfiguration.javaClass This is the "classic" Properties loader which loads the values from a single or multiple files (which can be chained with "include =". All given path references are either absolute or relative to the file name supplied in the constructor.

In this class, empty PropertyConfigurations can be built, properties added and later saved.

PropertiesConfigurationLayout.javaClass

A helper class used by PropertiesConfiguration to keep the layout of a properties file.

Instances of this class are associated with a PropertiesConfiguration object.

PropertyConverter.javaClass A utility class to convert the configuration properties into any type.
StrictConfigurationComparator.javaClass Strict comparator for configurations.
SubnodeConfiguration.javaClass

A specialized hierarchical configuration class that wraps a single node of its parent configuration.

Configurations of this type are initialized with a parent configuration and a configuration node of this configuration.

SubsetConfiguration.javaClass

A subset of another configuration.

SystemConfiguration.javaClass A configuration based on the system properties.
TestAbstractConfiguration.javaClass Abstract TestCase for implementations of AbstractConfiguration .
TestBaseConfiguration.javaClass Tests some basic functions of the BaseConfiguration class.
TestBaseConfigurationXMLReader.javaClass Test class for BaseConfigurationXMLReader.
TestBaseNullConfiguration.javaClass Tests some basic functions of the BaseConfiguration class.
TestCombinedConfiguration.javaClass Test class for CombinedConfiguration.
TestCompositeConfiguration.javaClass Test loading multiple configurations.
TestCompositeConfigurationNonStringProperties.javaClass Test if non-string properties are handled correctly.
TestConfigurationConverter.javaClass Tests the ConfigurationConverter class.
TestConfigurationFactory.javaClass Test the ConfigurationFactory.
TestConfigurationKey.javaClass Test class for ConfigurationKey.
TestConfigurationMap.javaClass
TestConfigurationSet.javaClass
TestConfigurationUtils.javaClass
TestDatabaseConfiguration.javaClass Test for database stored configurations.
TestDataConfiguration.javaClass
TestDefaultConfigurationBuilder.javaClass Test class for DefaultConfigurationBuilder.
TestEqualBehaviour.javaClass
TestEqualsProperty.javaClass test if properties that contain a "=" will be loaded correctly.
TestFileConfiguration.javaClass
TestHierarchicalConfiguration.javaClass Test class for HierarchicalConfiguration.
TestHierarchicalConfigurationXMLReader.javaClass Test class for HierarchicalConfigurationXMLReader.
TestHierarchicalXMLConfiguration.javaClass Test class for XMLConfiguration.
TestINIConfiguration.javaClass Test class for INIConfiguration.
TestJNDIConfiguration.javaClass Test to see if the JNDIConfiguration works properly.
TestJNDIEnvironmentValues.javaClass
TestMapConfiguration.javaClass Tests for MapConfiguration.
TestNonStringProperties.javaClass Test if non-string properties are handled correctly.
TestNullCompositeConfiguration.javaClass Test loading multiple configurations.
TestNullJNDIEnvironmentValues.javaClass
TestPropertiesConfiguration.javaClass Test for loading and saving properties files.
TestPropertiesConfigurationLayout.javaClass Test class for PropertiesConfigurationLayout.
TestPropertiesSequence.javaClass
TestPropertyConverter.javaClass Test class for PropertyConverter.
TestStrictConfigurationComparator.javaClass
TestSubnodeConfiguration.javaClass Test case for SubnodeConfiguration.
TestSubsetConfiguration.javaClass Test case for the SubsetConfiguration class.
TestSystemConfiguration.javaClass Tests for MapConfiguration.
TestThreesomeConfiguration.javaClass A base class for testing org.apache.commons.configuration.BasePropertiesConfiguration extensions.
TestXMLConfiguration.javaClass
TestXMLPropertiesConfiguration.javaClass
XMLConfiguration.javaClass

A specialized hierarchical configuration class that is able to parse XML documents.

The parsed document will be stored keeping its structure.

XMLPropertiesConfiguration.javaClass This configuration implements the XML properties format introduced in Java 5.0, see http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html. An XML properties file looks like this:
 <?xml version="1.0"?>
 <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
 <properties>
 <comment>Description of the property list</comment>
 <entry key="key1">value1</entry>
 <entry key="key2">value2</entry>
 <entry key="key3">value3</entry>
 </properties>
 
The Java 5.0 runtime is not required to use this class.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.