Repository navigation
Expand file tree
/
Copy pathpattern-catalog.json
More file actions
218 lines (218 loc) · 6.58 KB
/
Copy pathpattern-catalog.json
File metadata and controls
218 lines (218 loc) · 6.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
[
{
"chapter": 2,
"pattern": "简单工厂",
"package": "com.hanserwei.patterns.simplefactory",
"task": "runSimplefactory",
"article": "02-simple-factory.md",
"output": "# Java 25",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-simple-factory"
},
{
"chapter": 3,
"pattern": "工厂方法",
"package": "com.hanserwei.patterns.factorymethod",
"task": "runFactorymethod",
"article": "03-factory-method.md",
"output": "# Java 25",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-factory-method"
},
{
"chapter": 4,
"pattern": "抽象工厂",
"package": "com.hanserwei.patterns.abstractfactory",
"task": "runAbstractfactory",
"article": "04-abstract-factory.md",
"output": "dark/dark",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-abstract-factory"
},
{
"chapter": 5,
"pattern": "建造者",
"package": "com.hanserwei.patterns.builder",
"task": "runBuilder",
"article": "05-builder.md",
"output": "Java 25[OOP]",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-builder"
},
{
"chapter": 6,
"pattern": "原型",
"package": "com.hanserwei.patterns.prototype",
"task": "runPrototype",
"article": "06-prototype.md",
"output": "[Java] -> [Java, OOP]",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-prototype"
},
{
"chapter": 7,
"pattern": "单例",
"package": "com.hanserwei.patterns.singleton",
"task": "runSingleton",
"article": "07-singleton.md",
"output": "true",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-singleton"
},
{
"chapter": 8,
"pattern": "适配器",
"package": "com.hanserwei.patterns.adapter",
"task": "runAdapter",
"article": "08-adapter.md",
"output": "ada@example.test:Published",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-adapter"
},
{
"chapter": 9,
"pattern": "桥接",
"package": "com.hanserwei.patterns.bridge",
"task": "runBridge",
"article": "09-bridge.md",
"output": "## ALERT\nReview required",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-bridge"
},
{
"chapter": 10,
"pattern": "组合",
"package": "com.hanserwei.patterns.composite",
"task": "runComposite",
"article": "10-composite.md",
"output": "2",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-composite"
},
{
"chapter": 11,
"pattern": "装饰器",
"package": "com.hanserwei.patterns.decorator",
"task": "runDecorator",
"article": "11-decorator.md",
"output": "[Java]",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-decorator"
},
{
"chapter": 12,
"pattern": "外观",
"package": "com.hanserwei.patterns.facade",
"task": "runFacade",
"article": "12-facade.md",
"output": "[Java 25] indexed=true",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-facade"
},
{
"chapter": 13,
"pattern": "享元",
"package": "com.hanserwei.patterns.flyweight",
"task": "runFlyweight",
"article": "13-flyweight.md",
"output": "Serif:A@10\nSerif:B@20",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-flyweight"
},
{
"chapter": 14,
"pattern": "代理",
"package": "com.hanserwei.patterns.proxy",
"task": "runProxy",
"article": "14-proxy.md",
"output": "Java 25\nJava 25 reads=1",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-proxy"
},
{
"chapter": 15,
"pattern": "责任链",
"package": "com.hanserwei.patterns.chain",
"task": "runChain",
"article": "15-chain-of-responsibility.md",
"output": "approved",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-chain-of-responsibility"
},
{
"chapter": 16,
"pattern": "命令",
"package": "com.hanserwei.patterns.command",
"task": "runCommand",
"article": "16-command.md",
"output": "Java",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-command"
},
{
"chapter": 17,
"pattern": "解释器",
"package": "com.hanserwei.patterns.interpreter",
"task": "runInterpreter",
"article": "17-interpreter.md",
"output": "true",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-interpreter"
},
{
"chapter": 18,
"pattern": "迭代器",
"package": "com.hanserwei.patterns.iterator",
"task": "runIterator",
"article": "18-iterator.md",
"output": "Java 25\nOOP",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-iterator"
},
{
"chapter": 19,
"pattern": "中介者",
"package": "com.hanserwei.patterns.mediator",
"task": "runMediator",
"article": "19-mediator.md",
"output": "[Ada:Looks good]",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-mediator"
},
{
"chapter": 20,
"pattern": "备忘录",
"package": "com.hanserwei.patterns.memento",
"task": "runMemento",
"article": "20-memento.md",
"output": "Draft",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-memento"
},
{
"chapter": 21,
"pattern": "观察者",
"package": "com.hanserwei.patterns.observer",
"task": "runObserver",
"article": "21-observer.md",
"output": "[Java 25]",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-observer"
},
{
"chapter": 22,
"pattern": "状态",
"package": "com.hanserwei.patterns.state",
"task": "runState",
"article": "22-state.md",
"output": "published\narchived",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-state"
},
{
"chapter": 23,
"pattern": "策略",
"package": "com.hanserwei.patterns.strategy",
"task": "runStrategy",
"article": "23-strategy.md",
"output": "1000\n1200",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-strategy"
},
{
"chapter": 24,
"pattern": "模板方法",
"package": "com.hanserwei.patterns.templatemethod",
"task": "runTemplatemethod",
"article": "24-template-method.md",
"output": "[Java 25]",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-template-method"
},
{
"chapter": 25,
"pattern": "访问者",
"package": "com.hanserwei.patterns.visitor",
"task": "runVisitor",
"article": "25-visitor.md",
"output": "paragraph:4\ncode:11",
"articleUrl": "https://likeyy.love/archives/java25-design-patterns-visitor"
}
]