Features
The key features of EasyConf are:
- Usage of easy to
remember conventions to simplify configuring applications
- Component based configuration (for example for portlets
and portals
- Support for multiple environments
(development, integration, preproduction, production, etc)
Complete list of features:
-
Two file formats supported:
- Properties configuration
- User-defined XML configuration
Utils for J2EE applications
- Taglib to retrieve properties from JSPs
- Taglib to retrieve the configuration object
- Servlet and struts action to refresh the configuration
(in progress, scheduled for v. 0.9)
-
Features of properties configuration:
- Variables support
- Typed properties (automatic conversion to numbers, lists,
boolean, etc)
- Property filters
- Access to system properties. It can also be viewed as being able
to override property values through a system property
- Support for loading classes from a class name specified in a proprety
- Support for including property files
- Support for configuring multiple environments (devel, production, preproduction, etc)
- Special support for multicomponent environments (p.e. portlets and portals)
-
Features of XML configuration:
- Converts XML configuration to JavaBeans
- All XML vocabularies supported
- The XML format is described using digester rules
-
Design philosophy:
- Fail Fast: if
a property is not found (and no default value has been given) an Exception is
throws. If the property is found but is not of the expected type, an exception
is also thrown.
If the properties of a component is explicitly requested and its
base properties file does not exist, an exception is throws. If the
configuration object is explicitly requested and the XML file is not
found an exception is thrown. All this exceptions explain clearly the reason
of the error and allow developers and administrators to quickly detect the
problem and find the cause. It is always up to the developer to catch this
exceptions hidding the problem.
- Conventions over software and configuration: uses conventions instead of offering
unnecesary flexibility through configuration. This makes EasyConf simpler
and easier to use.
- Support for reloading of configuration (in progress, full support scheduled
for v. 0.9)
For more information about this features check the Javadoc summary of
EasyConf