GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Java/java-Design-pattern at master · VictorSSH/Java

Expand file tree

/

java-Design-pattern

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

java-Design-pattern

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
abstract-factory
abstract-factory
 
 
adapter
adapter
 
 
bridge
bridge
 
 
builder
builder
 
 
chain
chain
 
 
command
command
 
 
composite
composite
 
 
decorator
decorator
 
 
facade
facade
 
 
factory-method
factory-method
 
 
flyweight
flyweight
 
 
interpreter
interpreter
 
 
iterator
iterator
 
 
mediator
mediator
 
 
memento
memento
 
 
observer
observer
 
 
prototype
prototype
 
 
proxy
proxy
 
 
readme_template
readme_template
 
 
singleton
singleton
 
 
state
state
 
 
strategy
strategy
 
 
template-method
template-method
 
 
visitor
visitor
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Java 实现的面向对象软件设计模式

License MIT Build status Gitter

介绍

设计模式(Design pattern)是用于面向对象程序设计的、有效提高代码重用效率、有着明确使用场景分类的程序设计规范的总结。使用设计模式的 目的:为了代码可重用性、让代码更容易被他人理解、保证代码可靠性。 设计模式使代码编写真正工程化;设计模式是软件工程的基石脉络,如同大厦 的结构一样。在程序设计中 引入设计模式可以提高代码的可读性和程序运行时的可靠性,使程序设计得到规范和统一。

设计模式代表了最佳的实践,通常被有经验的面向对象的软件开发人员所采用。设计模式是软件开发人员在软件开发过程中面临 的一般问题的解决方案。这些解决方案是众多软件开发人员经过相当长的一段时间的试验和错误总结出来的。

设计模式是一套被反复使用的、多数人知晓的、经过分类编目的、代码设计经验的总结。使用设计模式是为了重用代码、让代码更容易被他人理解、 保证代码可靠性。 毫无疑问,设计模式于己于他人于系统都是多赢的,设计模式使代码编制真正工程化,设计模式是软件工程的基石,如同大厦的 一块块砖石一样。项目中合理地运用设计模式可以完美地解决很多问题,每种模式在现实中都有相应的原理来与之对应,每种模式都描述了一个在我们 周围不断重复发生的问题,以及该问题的核心解决方案,这也是设计模式能被广泛应用的原因。

目录

构建模式

  • Builder (创建者)

  • Abstract Factory (抽象工厂)

  • Factory Method (工厂方法)

  • Prototype (原型模式)

  • Singleton (单例模式)

结构模式

  • Adapter (适配器)

  • Bridge (桥接模式)

  • Composite (组合模式)

  • Decorator (装饰模式)

  • Facade (外观模式)

  • Flyweight (享元模式)

  • Proxy (代理模式)

行为模式

  • Chain of Responsibility (职责链模式)

  • Command (命令模式)

  • Interpreter (解释器模式)

  • Iterator(迭代器模式)

  • Mediator(中介者模式)

  • Memento(备忘录模式)

  • Observer(观察者模式)

  • State(状态模式)

  • Strategy (策略模式)

  • Template Method (模板方法)

  • Visitor(访问者模式)

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.