« first day (607 days earlier)      last day (286 days later) » 

7:33 AM
1
Q: Singleton or not. How to measure?

thesaurier_rexSometimes you have to decide between using a Singleton object (a real singleton, or just a de facto singleton like an injected bean), or just using new every time. What you do really depends on the object. If an object takes a minute to create and 10MB of memory, you do not want to create more t...

 
 
12 hours later…
7:37 PM
0
Q: Singleton using "Initialization-on-demand holder idiom"

elyschThis question is related to Initialization On Demand Holder idiom. I found here it IS thread safe without a final modifier. I hope this is not a dumb question. I have a configuration singleton that uses org.apache.commons.configuration.XMLConfiguration. Well In fact I have three and it can be i...

 

« first day (607 days earlier)      last day (286 days later) »