{"id":16559059,"url":"https://github.com/jameszbl/java_design_patterns","last_synced_at":"2025-04-04T20:10:43.395Z","repository":{"id":41168908,"uuid":"110099034","full_name":"JamesZBL/java_design_patterns","owner":"JamesZBL","description":"Java 实现的面向对象设计模式示例, 创建者、抽象工厂、工厂方法、原型、单例、适配器、桥接、组合、装饰器、备忘录、观察者、状态、策略、模板方法、访问者","archived":false,"fork":false,"pushed_at":"2018-04-20T13:45:39.000Z","size":369,"stargazers_count":680,"open_issues_count":0,"forks_count":310,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-03-28T19:08:09.636Z","etag":null,"topics":["design-patterns","java","oop","structure"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JamesZBL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-09T10:09:09.000Z","updated_at":"2025-03-17T14:12:29.000Z","dependencies_parsed_at":"2022-07-14T09:22:20.174Z","dependency_job_id":null,"html_url":"https://github.com/JamesZBL/java_design_patterns","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesZBL%2Fjava_design_patterns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesZBL%2Fjava_design_patterns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesZBL%2Fjava_design_patterns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesZBL%2Fjava_design_patterns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JamesZBL","download_url":"https://codeload.github.com/JamesZBL/java_design_patterns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247242678,"owners_count":20907134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["design-patterns","java","oop","structure"],"created_at":"2024-10-11T20:24:41.903Z","updated_at":"2025-04-04T20:10:43.377Z","avatar_url":"https://github.com/JamesZBL.png","language":"Java","readme":"# Java 实现的面向对象软件设计模式\n\n\n[![License MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/JamesZBL/java_design_patterns/blob/master/LICENSE)\n[![Build status](https://travis-ci.org/JamesZBL/java_design_patterns.svg?branch=master)](https://travis-ci.org/JamesZBL/java_design_patterns)\n[![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/java_design_patterns/)\n\n设计模式（Design pattern）是用于面向对象程序设计的、有效提高代码重用效率、有着明确使用场景分类的程序设计规范的总结。使用设计模式的\n目的：为了代码可重用性、让代码更容易被他人理解、保证代码可靠性。 设计模式使代码编写真正工程化；设计模式是软件工程的基石脉络，如同大厦\n的结构一样。在程序设计中\n引入设计模式可以提高代码的可读性和程序运行时的可靠性，使程序设计得到规范和统一。\n\n设计模式代表了最佳的实践，通常被有经验的面向对象的软件开发人员所采用。设计模式是软件开发人员在软件开发过程中面临\n的一般问题的解决方案。这些解决方案是众多软件开发人员经过相当长的一段时间的试验和错误总结出来的。\n\n设计模式是一套被反复使用的、多数人知晓的、经过分类编目的、代码设计经验的总结。使用设计模式是为了重用代码、让代码更容易被他人理解、\n保证代码可靠性。 毫无疑问，设计模式于己于他人于系统都是多赢的，设计模式使代码编制真正工程化，设计模式是软件工程的基石，如同大厦的\n一块块砖石一样。项目中合理地运用设计模式可以完美地解决很多问题，每种模式在现实中都有相应的原理来与之对应，每种模式都描述了一个在我们\n周围不断重复发生的问题，以及该问题的核心解决方案，这也是设计模式能被广泛应用的原因。\n\n## 目录\n\n### 构建模式\n\n* Builder （创建者）\n\n* Abstract Factory （抽象工厂）\n\n* Factory Method （工厂方法）\n\n* Prototype （原型模式）\n\n* Singleton （单例模式）\n\n\n### 结构模式\n\n* Adapter （适配器）\n\n* Bridge （桥接模式）\n\n* Composite （组合模式）\n\n* Decorator （装饰模式）\n\n* Facade （外观模式）\n\n* Flyweight （享元模式）\n\n* Proxy （代理模式）\n\n### 行为模式\n\n* Chain of Responsibility （职责链模式）\n\n* Command （命令模式）\n\n* Interpreter （解释器模式）\n\n* Iterator（迭代器模式）\n\n* Mediator（中介者模式）\n\n* Memento（备忘录模式）\n\n* Observer（观察者模式）\n\n* State（状态模式）\n\n* Strategy （策略模式）\n\n* Template Method （模板方法）\n\n* Visitor（访问者模式）\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjameszbl%2Fjava_design_patterns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjameszbl%2Fjava_design_patterns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjameszbl%2Fjava_design_patterns/lists"}