Effective Java / Uncategorized

Effective Java #3: Be Monoelvistic like the Singleton

I’ve added a new page in the Joshua Block Tribute section of my blog: Enforce the Singleton Singletons have a unique property: there is only one instance of a singleton in the whole system as far as the application is concerned. On Android many people make the mistake of believing the Activity or any object returned by a getContext() call is … Continue reading