commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhang, Alex" <AZh...@cypresscom.net>
Subject is there a context sensitive properties configuration class available?
Date Thu, 02 Nov 2006 21:23:05 GMT
Hi all,

 

I am looking for a properties configuration class that is context
sensitive, which means the value of a property depends on the context.

 

For example, I have a website that uses different databases on dev,
stage and production environments, but all use the same user name and
password, so my properties file should look like this:

 

DB_URL (DEV)=jdbc:mysql://10.0.0.1

DB_URL (STAGE)=jdbc:mysql://10.0.0.2

DB_ URL(PRO)=jdbc:mysql://10.0.0.3

 

DB_USER=joe_user

DB_PASSWD=abc123

 

It may be named something differently. But can anyone tell me if there
is any class like this? 

 

Thank you.

 

Alex Zhang

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message