I know what a singleton is and how wonderful programming to interface is. Well, at least I think I do.
But I can't figure out why singleton completely removes the possibility of using interfaces as said in "Pro Spring"? With limited experiences in Java, I can't imagine a scenario where a singleton implementing an interface can not be used by an object requiring that interface.
Can someboy enlighten me with an example please?
Thanks for your help!


Reply With Quote