Suppose that I am implementing a remote proxy in Java to an object that is likely to reside on a remote server but may reside locally.
This is in response to some comments in what is so bad about singletons There it was suggested that the proxy pattern can be used instead of a singleton to cache DB data. But I cannot see the advanta