1 Star 0 Fork 0

臭水沟 / java-design-patterns

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

java-design-patterns

创建型模式(creational-patterns):

### factory	                --工厂模式
1. abstract factory         --抽象工厂模式
2. factory method			--工厂方法模式
3. simple factory           --简单工厂

### builder					--建造者模式
	适用于有多个构造函数的场景
### prototype				--原型模式
1. 实现java自带的cloneable接口,然后重新clone()方法,来实现对象的拷贝
2. 通过序列化和反序列化的方式,来实现对象的拷贝 -- 推荐
### singleton				--单例模式
1. lazy singleton --懒汉式
2. singleton    --饿汉式
3. thread safe double checked locking lazy loader --线程安全-双重校验-懒汉式
4. thread safe lazy loader --线程安全-懒汉式
5. enum singleton --枚举类型-单例
6. lazy initialzation holer --单例的最佳实践模式
### --
### property
### multiton
### object pool
### --

结构型模式(structural-patterns):

* adapter					--适配器模式
* bridge					--桥接模式
* composite					--组合模式
* decorator					--装饰模式
* facade					--外观模式
* flyweight					--亨元模式
* proxy						--代理模式
* --
* Service locator
* Servant
* Event Aggregator
* --

行为模式(behavioral-patterns):

* chain of responsibillty	--责任链模式
* command					--命令模式
* iterator					--迭代模式
* mediatar					--中介者模式
* memenic					--备忘录模式
* observer					--观察者模式
* state 					--状态模式
* strategy					--策略模式
* template method			--模板方法
* visitor					--访问者模式
* Null object
* interpreter filter		--解释器模式
* Specification
* dependency injection
The MIT License (MIT) Copyright (c) 2015 臭水沟 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

java设计模式 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/cshuig/java-design-patterns.git
git@gitee.com:cshuig/java-design-patterns.git
cshuig
java-design-patterns
java-design-patterns
master

搜索帮助