About Factory / Abs. Fact. pattern.... 2004-08-30 - By Manish Malhotra
Back Hi All,
I hv one issue reg. Factory / Abs. Fact. pattern. And its as follows.
Object of Factory / Abs. Factory class could be managed in following 3 ways 1. Single ton pattern 2. The factory methods to be static 3. Factory class would be like a normal class. (every call create new object).
And one more issue needs to be consider that: Classes of these patterns is going to be used by different threads also. Then in these cases either it should be thread safe or shud use the above 3rd option for managing the its object.
Your asap feedbacks are highly appreciable.
Thanks & Regards, Manish Malhotra
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
|
|