diff --git a/localization/zh/marker/READEME.md b/localization/zh/marker/READEME.md new file mode 100644 index 000000000000..94c3026d1789 --- /dev/null +++ b/localization/zh/marker/READEME.md @@ -0,0 +1,28 @@ +--- +title: Marker Interface +category: Structural +language: ch +tag: + - Decoupling +--- + +## 目的 +使用空接口作为标记来区分特殊处理的对象。 + +## 类图 +![alt text](./etc/MarkerDiagram.png "Marker Interface") + +## 适用场景 +在以下场景使用Marker Interface pattern + +* 您希望将特殊对象与普通对象区分开来(以不同方式处理它们) +* 您希望标记某些对象可用于某些类型的操作 + +## 应用案例 + +* [javase.8.docs.api.java.io.Serializable](https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html) +* [javase.8.docs.api.java.lang.Cloneable](https://docs.oracle.com/javase/8/docs/api/java/lang/Cloneable.html) + +## 鸣谢 + +* [Effective Java](https://www.amazon.com/gp/product/0134685997/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=0134685997&linkCode=as2&tag=javadesignpat-20&linkId=4e349f4b3ff8c50123f8147c828e53eb) diff --git a/localization/zh/marker/etc/MarkerDiagram.png b/localization/zh/marker/etc/MarkerDiagram.png new file mode 100644 index 000000000000..6ed4f9c56780 Binary files /dev/null and b/localization/zh/marker/etc/MarkerDiagram.png differ diff --git a/localization/zh/marker/etc/MarkerDiagram.ucls b/localization/zh/marker/etc/MarkerDiagram.ucls new file mode 100644 index 000000000000..0f8376e40e23 --- /dev/null +++ b/localization/zh/marker/etc/MarkerDiagram.ucls @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/localization/zh/marker/etc/marker.urm.puml b/localization/zh/marker/etc/marker.urm.puml new file mode 100644 index 000000000000..02af47ddf261 --- /dev/null +++ b/localization/zh/marker/etc/marker.urm.puml @@ -0,0 +1,2 @@ +@startuml +@enduml \ No newline at end of file diff --git a/pom.xml b/pom.xml index a68345bcba94..58166a7130e4 100644 --- a/pom.xml +++ b/pom.xml @@ -208,6 +208,7 @@ thread-local-storage optimistic-offline-lock crtp + client-side