3 ms·
I _think_ that implementation is non-lazy? The OP is not interested in that case. > 3. It is lazy. One can argue about this, but non-lazy factories are not in
by jrochkind1 12y ago
I _think_ that implementation is non-lazy? The OP is not interested in that case.
> 3. It is lazy. One can argue about this, but non-lazy factories are not interesting for our discussion. Singleton initialization should happen with the first request for a Singleton, not when Singleton class is initialized. If no one wants a Singleton instance, we should not instantiate it.