From: Christoph S. <ste...@ic...> - 2002-08-13 11:12:11
|
Oliver Horlacher wrote: > Hi all > > Would it be possible to make the Isotope and Element factory singleton > classes? I.e. make a private constructor and add the method public > static XXXFactory getInstance() to get the singleton instance of the > factory. The advantage of this method is that if the factory is used in > more than one class in an application the corresponding xml file is only > read once which greatly improves the performance. Great suggestion. I, like Egon, was not aware why this was done. This should be done as soon as possible but we have to be aware of the fact that these classes are used in many places and the whole CDK needs to be carefully tested after the change. Cheers, Chris -- Dr. Christoph Steinbeck (http://www.ice.mpg.de/departments/ChemInf) MPI of Chemical Ecology, Winzerlaer Str. 10, Beutenberg Campus, 07745 Jena, Germany Tel: +49(0)3641 571263 - Fax: +49(0)3641 571202 What is man but that lofty spirit - that sense of enterprise. ... Kirk, "I, Mudd," stardate 4513.3.. |