using System properties in application vs. Singleton class?

B

bb

What are the advantages and/or disadvantages in using
System.setProperties(map) for values read from an xml config file for
'global' use in an application vs. creating a Singleton class to store
the same values? I've gone the Singleton route in the past but I'm not
totally clear on the difference with System.properties . The values
will be read-only after they are read from the config file.

Thanks,
Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top