**DONOTDELETE**
(Unregistered)
10/08/06 05:50 AM
Consider using Jakarta Commons - Configuration

Consider using Jakarta Commons Configuration http://jakarta.apache.org/commons/configuration/ which provides a standardized interface, with typed values (integer/double/arrays...), allowing you to provide the configuration using (a mixture of):
* Properties files
* XML documents
* Property list files (.plist)
* JNDI
* JDBC Datasource
* System properties
* Applet parameters
* Servlet parameters

Using the following file-loading strategies:
* If the combination from base path and file name is a full URL that points to an existing file, this URL will be used to load the file.
* If the combination from base path and file name is an absolute file name and this file exists, it will be loaded.
* If the combination from base path and file name is a relative file path that points to an existing file, this file will be loaded.
* If a file with the specified name exists in the user's home directory, this file will be loaded.
* Otherwise the file name is interpreted as a resource name, and it is checked whether the data file can be loaded from the classpath.

Check it out!


**DONOTDELETE**
(Unregistered)
11/01/06 08:41 AM
Re: Consider using Jakarta Commons - Configuration

Yes, I use Jakarta Commons package, and it is a well organized easy to use for loading property files and other configuration files.

**DONOTDELETE**
(Unregistered)
11/14/06 04:10 AM
Re: Consider using Jakarta Commons - Configuration

Jakarta Commons - Configuration
seems comfortable
- but has a lot of dependencies.


**DONOTDELETE**
(Unregistered)
07/11/07 09:17 AM
Re: Consider using Jakarta Commons - Configuration

I am planning to use this.Kinldy let me know what are the dependencies.

**DONOTDELETE**
(Unregistered)
10/12/07 03:58 PM
Re: Consider using Jakarta Commons - Configuration

It's all listed here

http://commons.apache.org/configuration/dependencies.html



Contact us JavaWorld

Powered by UBB.threads™ 6.5.5

Featured White Papers


RESEARCH CENTERS: Java Standard Edition | Java Enterprise Edition | Java Micro Edition | Development Tools
About Us | Advertise | Contact Us | Terms of Service/Privacy
Copyright, 2006-2008 Network World, Inc. All rights reserved.