Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions design-patterns/patterns-proxy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@

# 23种设计模式-${pattern-cn}(${patternName} pattern)

# 定义
>
此模式用于:
*
*

# 概述
>可以解决哪些问题?
>*
>*
>

>如何解决上述问题?
>*
>*
>


# 类图
## WIKI.UML diagram
![UML diagram](../doc/wiki-uml/wiki.${patternName}.uml.jpg)
## WIKI.Class diagram
![Class diagram](../doc/wiki-uml/wiki.${patternName}.class_diagram.png)
## 项目模拟示例.Class diagram
![Class diagram](../doc/project-uml/${patternName}.class_diagram.png)

# 适用场景
* 优点
1.
2.
* 缺点
1.
2.
* 适用场景
1.
2.
3.
>

# 衍生思考
*
*
*
*

# 相关链接
* [源码](https://github.com/GourdErwa/java-advanced/tree/master/design-patterns/patterns-${patternName})
* [wiki.Mediator pattern](https://en.wikipedia.org/wiki/${patternName}_pattern)
42 changes: 42 additions & 0 deletions design-patterns/patterns-proxy/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ The MIT License
~ Copyright © 2018-2018 GourdErwa
~
~ 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.
~
-->

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<parent>
<groupId>com.gourd</groupId>
<artifactId>erwa</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>./../../pom.xml</relativePath>
</parent>

<modelVersion>4.0.0</modelVersion>

<artifactId>patterns-proxy</artifactId>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.gourd.design.patterns.proxy;

/**
* @author WenTingTing by 2018/11/24
*/
public class Application {
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<module>design-patterns/patterns-prototype</module>
<module>design-patterns/patterns-mediator</module>
<module>design-patterns/patterns-visitor</module>

<module>design-patterns/patterns-proxy</module>
<!--模拟场景需求-->
<module>analog-demand/demand-alias-replacement</module>
</modules>
Expand Down