Hello,
from my understanding of what you said I will need to wrap every call to the
EventLogController.getInstance() method every time an object calls it?

Would that mean that I then do not need to have the writeToEventLog method
synchronized??

Best Regards

Marc

-----Original Message-----
From: Stefan Meisner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 23 November 2000 9:23 AM
To: [EMAIL PROTECTED]
Subject: AW: Singleton V.s Static classes - In a Servlet world


Make sure, that getInstance() is synchronized or it could
break that design pattern, depending on the implementation.

Greetings
Stefan

 public static EventLogController getInstance()
        {
        //Singleton implementation
        }

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to