摘要: 有关设计模式一.单例设计模式1.饱汉模式public class Singleton { public static Singleton instance=new Singleton(); private Singleton(){}; //构造函数私有化,为了阻止其他实例化对象 public st... 阅读全文
posted @ 2014-10-24 21:19 夜雨星辰- 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 有关设计模式一.单例设计模式1.饱汉模式public class Singleton { public static Singleton instance=null; private Singleton(){}; //构造函数私有化,为了阻止其他实例化对象 public static Singl... 阅读全文
posted @ 2014-10-24 20:48 夜雨星辰- 阅读(96) 评论(0) 推荐(0) 编辑