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.
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.
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.
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.
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.
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.
This Configuration class allows you to interface with a JNDI datasource.
A JNDIConfiguration is read-only, write operations will throw an
UnsupportedOperationException.
A specialized configuration implementation that does not support cloning.
This class is only used in some test cases for testing implementations of
clone() methods.
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.
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.