# spring
**Repository Path**: quexinchen/spring
## Basic Information
- **Project Name**: spring
- **Description**: No description available
- **Primary Language**: Java
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2017-05-22
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## 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