The Artima Developer Community
Sponsored Link

Statics/Singletons do thry really have a place in Java?

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Statics/Singletons do thry really have a place in Java?

Posted by Bryan E. Boone on 09 Mar 1999, 3:56 AM

The whole notion of statics and Singletons is really a nightmare in Java, especially in the applet world. When two applets are on the same page and have classes that contain Singletons or statics, those values are reflected in _both_ applets not on a per applet instance basis as one would think (hope). I think that Java is greatly lacking in this support and I imagine there is no effort to have better support. :(





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us