1 Star 0 Fork 0

sangluo / spring

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

设计模式作业

    一、代理设计模式(模拟中介代理租客租房)

  • 1、jdk代理 测试类: spring.patterns.proxy.jdk.RentJdkProxyTest
  • 2、cglib代理 测试类: spring.patterns.proxy.cglib.RentCglibProxyTest

    二、工厂设计模式(生产共享单车例子)

  • 1、简单工厂模式 测试类:spring.patterns.factory.simple.SimpleFactoryTest
  • 2、工厂方法模式 测试类:spring.patterns.factory.function.FunctionTestFactory
  • 3、抽象工厂模式 测试类:spring.patterns.factory.abstractor.AbstractTestFactory

    三、委派设计模式(开发项目例子)

  • 委派设计模式 测试类:spring.patterns.delegate.ProjectDelegateTest

    四、单例设计模式(用Set集合类计算创建多少对象例子)

  • 单例设计模式 测试类:spring.patterns.singleton.SingletonTest

    五、原型设计模式(浅拷贝用基本数据类型和String类型进行测试;深拷贝用List、Date作为例子测试)

  • 1、浅拷贝原型设计模式 测试类:spring.patterns.prototype.simple.SimplePrototypeTest
  • 2、深拷贝原型设计模式 测试类:spring.patterns.prototype.deep.DeepPrototypeTest

    六、模板设计模式(用烧菜为例)

  • 模板设计模式 测试类:spring.patterns.template.CookTemplateTest

空文件

简介

暂无描述 展开 收起
Java
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/quexinchen/spring.git
git@gitee.com:quexinchen/spring.git
quexinchen
spring
spring
master

搜索帮助