I was doing research on singleton and I have developed a very basic singleton class..
public class SingletonObject { private static SingletonObject ref;
If you have two classloaders, you'll be able to create a singleton from each classloader.
The document "When is a singleton not a singleton" is also worth a read.