|
The importance of software configuration cannot be
overstated. It enables us to quickly change the behaviour
of software without resorting to code changes. Whilst the
Java™ J2SE SDK
provides standard mechanisms, such as properties files and
resource bundles, to enable the configuration of software,
these lack a number of features which are required for
today's dynamic and complex business environments. This void
also exists in IoC frameworks, which support configuration
via simple dependency injection and property-file
post-processing.
XConfig goes several steps better than existing schemes
by providing simple and intuitive means, of encoding rich
configuration data in XML,
and of accessing such data from
Java™ applications.
Access can either be via a simple API or annotations,
thus preventing unnecessary intrusion into application
code. Among the powerful, and yet simple, features provided
by XConfig to simplify the representation, and use of configuration
information are the following:
-
Automatic and real-time change detection, and
auto-reload of configuration data: This removes
the need to reboot your application when making
configuration changes.
-
Annotations-based integration into
Spring™
applications: This removes the need to explicitly
invoke XConfig API in your code.For non-spring
applications, XConfig provides a simple API,
which ensures that it does not intrude into
your application code unnecessarily.
-
Modularization of configuration data: This includes
the ability to create a single configuration tree by
importing other independent configuration
documents into a single node.
-
Simple plug-in/extension mechanisms and points:
These enable application developers to tap into
its strengths and to customize application startup and
initialization sequence.
|