> From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > Subject: Re: PermGen space [ot] > > but if the factory is a pure static utility, calling > ASingleton myCopy = ASingletonFactory.getASingleton(); > will leave no references to the factory class :-)
Unless the factory is being called by reflection, there certainly will be a reference to it - from the caller (the class reference in your line of code above). If the caller is under the same classloader as the factory, then it won't matter - but in that case it wouldn't matter if there were no factory involved and it was just a direct reference to the singleton. All the factory does is provide another layer of indirection, nothing else. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]