Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 958382

mortenhattesen
Unregistered




Consider using Jakarta Commons - Configuration
      10/08/06 05:50 AM

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!

Post Extras Print Post   Remind Me!     Notify Moderator


Entire topic
Subject Posted by Posted on
* Consider using Jakarta Commons - Configuration mortenhattesen 10/08/06 05:50 AM
. * * Re: Consider using Jakarta Commons - Configuration    11/01/06 08:41 AM
. * * Re: Consider using Jakarta Commons - Configuration    11/14/06 04:10 AM
. * * Re: Consider using Jakarta Commons - Configuration    07/11/07 09:17 AM
. * * Re: Consider using Jakarta Commons - Configuration    10/12/07 03:58 PM

Extra information
0 registered and 3 anonymous users are browsing this forum.

Moderator:   



Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Thread views: 18279

Rate this thread

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5