摘要:
1 normal modeclass Singleton{ private Singleton(){}; Singleton singleton; static Singleton getInstance() { if(singleton == null) sing... 阅读全文
posted @ 2014-09-17 19:49
williamwood
阅读(154)
评论(0)
推荐(0)
摘要:
simple factorygood:1 devide implementation and initialization2 use config file can make system more flexible (reflection)bad:1 all initialization work... 阅读全文
posted @ 2014-09-17 19:17
williamwood
阅读(185)
评论(0)
推荐(0)
摘要:
simple factoryfactory methodabstract factory 阅读全文
posted @ 2014-09-17 18:19
williamwood
阅读(95)
评论(0)
推荐(0)
浙公网安备 33010602011771号