> What if the constructor could throw a genuine exception (say file not found)

it would be per see a bad design, a singleton implementation follows
some mind designs,

> or you wanted to supply some non-static arguments to it?

if what you do,  does not fit with a singleton pattern don't or use a
hard mutex.

According to java documentation static initialization  follows the
same concept than pthread_once

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to