摘要: 如果不涉及到线程安全及延迟加载,单例最简单的写法:public class SingletonTest { public static SingletonTest instance = new SingletonTest(); private SingletonTest(){ ... 阅读全文
posted @ 2015-01-03 00:16 huliangbin 阅读(407) 评论(0) 推荐(0) 编辑