Unstable Terrain

Software development in the real world

Posts Tagged ‘singletons

Efficient Singletons in legacy code

leave a comment »

The app I’m maintaining is not Spring-enabled so I am faced with the possibility of writing code for singleton objects. To my mild surprise, I discovered that Java 5 has made singleton creation considerably less bug-prone. There’s also better practices for double-checked locking, if your code (attempts to) swing that way.


Written by Trent

August 30, 2011 at 11:25 am

Posted in Software Development

Tagged with , ,