An open API service indexing awesome lists of open source software.

https://github.com/tonydeng/design-pattern-java

Java设计模式
https://github.com/tonydeng/design-pattern-java

design-patterns factory state strategy visitor

Last synced: 11 months ago
JSON representation

Java设计模式

Awesome Lists containing this project

README

          

# Java设计模式示例

[![Build Status](https://travis-ci.org/tonydeng/design-pattern-java.svg?branch=master)](https://travis-ci.org/tonydeng/design-pattern-java)

[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=com.github.tonydeng%3Adesign-pattern-java&metric=coverage)](https://sonarcloud.io/dashboard?id=com.github.tonydeng%3Adesign-pattern-java)

[![Lines of code](https://sonarcloud.io/api/project_badges/measure?project=com.github.tonydeng%3Adesign-pattern-java&metric=ncloc)](https://sonarcloud.io/dashboard?id=com.github.tonydeng%3Adesign-pattern-java)

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

## 创建模式

1. [单例(Singleton)模式](docs/singleton.md)
2. [工厂(Factory)模式](docs/factory.md)
2. 原型(Prototype)模式
4. 构建者(Builder)模式

## 结构模式

1. 门面(Facade)模式
2. [代理(Proxy)模式](docs/proxy.md)
3. 适配器(Adapter)模式
4. Composite模式
5. 装饰器(Decorator)模式
6. 桥接(Bridge)模式
7. 享元(Flyweight)模式

## 行为模式

1. [状态(State)模式](docs/state.md)
1. [策略(Strategy)模式](docs/strategy.md)
1. [访问者(Visitor)模式](docs/visitor.md)
1. [命令(Command)模式](docs/command.md)
1. [责任链(CoR)模式](docs/cor.md)