Community
Participate
Working Groups
After reading 314959 a remembered a strange implementation of JFace's ArrayContentProvider which has a public static getInstance() method to return a singleton instance (although a public ctor is visible as well). Although this class has no state, extending classes potentially *could* have. In this case, the behavior between RCP and RAP is different as in RCP the state is hold per user, in RAP it is shared among all sessions. IMHO it makes sense to convert this to a session singleton, too.
Even though the class itself could be extended, I don't see how anyone could manipulate getInstance() to return something else than ArrayContentProvider. Please re-open if you disagree.
You're right - I agree ;-)