DesignPatterns:初始提交 - 单例模式-源码

上传者: 42144554 | 上传时间: 2021-06-08 22:03:18 | 文件大小: 33KB | 文件类型: ZIP
设计模式 初始提交 - 单例模式 这有不同的方式来创建单例模式并用线程测试它们。 这个项目也有使用反射打破单例模式的方法。 将添加代码来检查反射是否打破了单例设计和其他设计模式。

文件下载

资源详情

[{"title":"( 36 个子文件 33KB ) DesignPatterns:初始提交 - 单例模式-源码","children":[{"title":"DesignPatterns-master","children":[{"title":".gitignore <span style='color:#111;'> 574B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"vmchalla","children":[{"title":"designpattern","children":[{"title":"structural","children":[{"title":"adapter","children":[{"title":"OrdersProcessorImpl.java <span style='color:#111;'> 837B </span>","children":null,"spread":false},{"title":"OrderProcessorAdapter.java <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"Order.java <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"IOrderProcessor.java <span style='color:#111;'> 188B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"creational","children":[{"title":"factory","children":[{"title":"process","children":[{"title":"EmailAlert.java <span style='color:#111;'> 1014B </span>","children":null,"spread":false},{"title":"Alert.java <span style='color:#111;'> 747B </span>","children":null,"spread":false},{"title":"PaperAlert.java <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"SmsAlert.java <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false}],"spread":true},{"title":"data","children":[{"title":"AlertsData.java <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false}],"spread":true},{"title":"AlertsFactory.java <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false}],"spread":true},{"title":"singleton","children":[{"title":"StaticBlockSingleton.java <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"SynchronizedSingleton.java <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"SingletonEnum.java <span style='color:#111;'> 378B </span>","children":null,"spread":false},{"title":"BetterThreadSafeSingleton.java <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"BillPughSingleton.java <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"SingletonLazy.java <span style='color:#111;'> 887B </span>","children":null,"spread":false}],"spread":true},{"title":"prototype","children":[{"title":"Employee.java <span style='color:#111;'> 936B </span>","children":null,"spread":false},{"title":"TruckData.java <span style='color:#111;'> 2.61KB </span>","children":null,"spread":false},{"title":"TruckUtil.java <span style='color:#111;'> 3.92KB </span>","children":null,"spread":false}],"spread":true},{"title":"builder","children":[{"title":"FoodProduct.java <span style='color:#111;'> 4.42KB </span>","children":null,"spread":false}],"spread":true},{"title":"abstractfactory","children":[{"title":"AlertAF.java <span style='color:#111;'> 209B </span>","children":null,"spread":false},{"title":"SmsAlertAF.java <span style='color:#111;'> 359B </span>","children":null,"spread":false},{"title":"AlertsFactory.java <span style='color:#111;'> 316B </span>","children":null,"spread":false},{"title":"PaperAlertAF.java <span style='color:#111;'> 363B </span>","children":null,"spread":false},{"title":"EmailAlertAF.java <span style='color:#111;'> 364B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"behavioural","children":[{"title":"observer","children":[{"title":"AvailabilityService.java <span style='color:#111;'> 785B </span>","children":null,"spread":false},{"title":"StoreFrontAvailabilityPopulator.java <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"ProductAvailability.java <span style='color:#111;'> 736B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"threads","children":[{"title":"BillPughSingletonThreads.java <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"OverheadSingletonThreads.java <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false}],"spread":true},{"title":"service","children":[{"title":"DemoSingletons.java <span style='color:#111;'> 4.32KB </span>","children":null,"spread":false},{"title":"BreakSingleton.java <span style='color:#111;'> 4.91KB </span>","children":null,"spread":false}],"spread":true},{"title":"MainStub.java <span style='color:#111;'> 8.60KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'> 313B </span>","children":null,"spread":false},{"title":".gitattributes <span style='color:#111;'> 378B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明