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

 

Reply via email to