Diff between Spring singleton and Singleton design pattern
I read in the spring docs that spring implementation of singleton is per spring container and the singleton design pattern is per class loader. My questions:-
1. What if there are multiple class loaders inside the same spring container?
2. what if there are multiple containers using same class loader.
I mainly want to know a clear difference between spring implementation of singleton and the singleton design pattern. I have not been able to find a proper answer in any forums.
Spring singleton beans vs Singleton design pattern
Found a good example here