Skip to content

Commit 6d4319a

Browse files
committed
GH-152 - Further refinements of stereotype metadata.
1 parent 6b98952 commit 6d4319a

File tree

5 files changed

+71
-95
lines changed

5 files changed

+71
-95
lines changed
Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,39 @@
11
{
2-
"stereotypes" : [
3-
{
4-
"id" : "architecture.hexagonal.PrimaryAdapter",
2+
"stereotypes" : {
3+
"architecture.hexagonal.PrimaryAdapter" : {
54
"groups" : [ "architecture.hexagonal" ],
65
"priority" : 100
76
},
8-
{
9-
"id" : "architecture.hexagonal.SecondaryAdapter",
7+
"architecture.hexagonal.SecondaryAdapter" : {
108
"groups" : [ "architecture.hexagonal" ],
119
"priority" : 200
1210
},
13-
{
14-
"id" : "architecture.hexagonal.Adapter",
11+
"architecture.hexagonal.Adapter" : {
1512
"groups" : [ "architecture.hexagonal" ],
1613
"priority" : 300
1714
},
18-
{
19-
"id" : "architecture.hexagonal.PrimaryPort",
15+
"architecture.hexagonal.PrimaryPort" : {
2016
"groups" : [ "architecture.hexagonal" ],
2117
"priority" : 100
2218
},
23-
{
24-
"id" : "architecture.hexagonal.SecondaryPort",
19+
"architecture.hexagonal.SecondaryPort" : {
2520
"groups" : [ "architecture.hexagonal" ],
2621
"priority" : 200
2722
},
28-
{
29-
"id" : "architecture.hexagonal.Port",
23+
"architecture.hexagonal.Port" : {
3024
"groups" : [ "architecture.hexagonal" ],
3125
"priority" : 300
3226
},
33-
{
34-
"id" : "architecture.hexagonal.Application",
27+
"architecture.hexagonal.Application" : {
3528
"groups" : [ "architecture.hexagonal" ],
3629
"priority" : 400
3730
}
38-
],
39-
"groups" : [
40-
{
41-
"ids": [ "architecture.hexagonal" ],
42-
"displayName" : "Hexagonal Architecture"
31+
},
32+
"groups" : {
33+
"architecture.hexagonal" : {
34+
"displayName" : "Hexagonal Architecture",
35+
"type" : "architecture",
36+
"priority" : 20
4337
}
44-
]
38+
}
4539
}
Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
11
{
2-
"stereotypes" : [
3-
{
4-
"id" : "architecture.layered.ApplicationLayer",
2+
"stereotypes" : {
3+
"architecture.layered.ApplicationLayer" : {
54
"groups" : [ "architecture.layered" ]
65
},
7-
{
8-
"id" : "architecture.layered.DomainLayer",
6+
"architecture.layered.DomainLayer" : {
97
"groups" : [ "architecture.layered" ]
108
},
11-
{
12-
"id" : "architecture.layered.InfrastructureLayer",
9+
"architecture.layered.InfrastructureLayer" : {
1310
"groups" : [ "architecture.layered" ]
1411
},
15-
{
16-
"id" : "architecture.layered.InterfaceLayer",
12+
"architecture.layered.InterfaceLayer" : {
1713
"groups" : [ "architecture.layered" ]
1814
}
19-
],
20-
"groups" : [
21-
{
22-
"ids": [ "architecture.layered" ],
23-
"displayName" : "Layered Architecture"
15+
},
16+
"groups" : {
17+
"architecture.layered" : {
18+
"displayName" : "Layered Architecture",
19+
"type" : "architecture",
20+
"priority" : 30
2421
}
25-
]
22+
}
2623
}
Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,48 @@
11
{
2-
"stereotypes" : [
3-
{
4-
"id" : "architecture.onion.ApplicationRing",
2+
"stereotypes" : {
3+
"architecture.onion.ApplicationRing" : {
54
"assignments" : [
65
"@architecture.onion.classical.ApplicationRing",
76
"@architecture.onion.simplified.ApplicationRing"
87
],
98
"groups" : [ "architecture.onion" ],
109
"priority" : 300
1110
},
12-
{
13-
"id" : "architecture.onion.DomainRing",
11+
"architecture.onion.DomainRing" : {
1412
"assignments" : [
1513
"@architecture.onion.simplified.DomainRing"
1614
],
1715
"groups" : [ "architecture.onion" ],
1816
"priority" : 200
1917
},
20-
{
21-
"id" : "architecture.onion.DomainModelRing",
18+
"architecture.onion.DomainModelRing" : {
2219
"assignments" : [
2320
"@architecture.onion.classical.DomainModelRing"
2421
],
2522
"groups" : [ "architecture.onion" ],
2623
"priority" : 200
2724
},
28-
{
29-
"id" : "architecture.onion.DomainServiceRing",
25+
"architecture.onion.DomainServiceRing" : {
3026
"assignments" : [
3127
"@architecture.onion.classical.DomainServiceRing"
3228
],
3329
"groups" : [ "architecture.onion" ],
3430
"priority" : 200
3531
},
36-
{
37-
"id" : "architecture.onion.InfrastructureRing",
32+
"architecture.onion.InfrastructureRing" : {
3833
"assignments" : [
3934
"@architecture.onion.classical.InfrastructureRing",
4035
"@architecture.onion.simplified.InfrastructureRing"
4136
],
4237
"groups" : [ "architecture.onion" ],
4338
"priority" : 100
4439
}
45-
],
46-
"groups" : [
47-
{
48-
"ids" : [ "architecture.onion" ],
49-
"displayName" : "Onion Architecture"
40+
},
41+
"groups" : {
42+
"architecture.onion" : {
43+
"displayName" : "Onion Architecture",
44+
"type" : "architecture",
45+
"priority" : 10
5046
}
51-
]
52-
}
47+
}
48+
}
Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
2-
"stereotypes": [
3-
{
4-
"id": "ddd.AggregateRoot",
2+
"stereotypes" : {
3+
"ddd.AggregateRoot" : {
54
"assignments": [
65
"@org.jmolecules.ddd.annotation.AggregateRoot",
76
"org.jmolecules.ddd.types.AggregateRoot"
@@ -10,9 +9,9 @@
109
"ddd"
1110
],
1211
"priority": 0
13-
},
14-
{
15-
"id": "ddd.Association",
12+
},
13+
"ddd.Association" : {
14+
1615
"assignments": [
1716
"@org.jmolecules.ddd.annotation.Association",
1817
"org.jmolecules.ddd.types.Association"
@@ -22,8 +21,7 @@
2221
],
2322
"priority": 0
2423
},
25-
{
26-
"id": "ddd.BoundedContext",
24+
"ddd.BoundedContext" : {
2725
"assignments": [
2826
"@org.jmolecules.ddd.annotation.BoundedContext"
2927
],
@@ -32,8 +30,7 @@
3230
],
3331
"priority": 0
3432
},
35-
{
36-
"id": "ddd.Entity",
33+
"ddd.Entity" : {
3734
"assignments": [
3835
"@org.jmolecules.ddd.annotation.Entity",
3936
"org.jmolecules.ddd.types.Entity"
@@ -43,8 +40,7 @@
4340
],
4441
"priority": 10
4542
},
46-
{
47-
"id": "ddd.Factory",
43+
"ddd.Factory" : {
4844
"assignments": [
4945
"@org.jmolecules.ddd.annotation.Factory"
5046
],
@@ -53,8 +49,7 @@
5349
],
5450
"priority": 10
5551
},
56-
{
57-
"id": "ddd.Identifiable",
52+
"ddd.Identifiable" : {
5853
"assignments": [
5954
"org.jmolecules.ddd.types.Identifiable"
6055
],
@@ -63,8 +58,7 @@
6358
],
6459
"priority": 20
6560
},
66-
{
67-
"id": "ddd.Identifier",
61+
"ddd.Identifier" : {
6862
"assignments": [
6963
"org.jmolecules.ddd.types.Identifier"
7064
],
@@ -73,8 +67,7 @@
7367
],
7468
"priority": 0
7569
},
76-
{
77-
"id": "ddd.Module",
70+
"ddd.Module" : {
7871
"assignments": [
7972
"@org.jmolecules.ddd.annotation.Module"
8073
],
@@ -83,8 +76,7 @@
8376
],
8477
"priority": 0
8578
},
86-
{
87-
"id": "ddd.Repository",
79+
"ddd.Repository" : {
8880
"assignments": [
8981
"@org.jmolecules.ddd.annotation.Repository",
9082
"org.jmolecules.ddd.types.Repository"
@@ -94,8 +86,7 @@
9486
],
9587
"priority": 0
9688
},
97-
{
98-
"id": "ddd.Service",
89+
"ddd.Service" : {
9990
"assignments": [
10091
"@org.jmolecules.ddd.annotation.Service"
10192
],
@@ -104,8 +95,7 @@
10495
],
10596
"priority": 0
10697
},
107-
{
108-
"id": "ddd.ValueObject",
98+
"ddd.ValueObject" : {
10999
"assignments": [
110100
"@org.jmolecules.ddd.annotation.ValueObject",
111101
"org.jmolecules.ddd.types.ValueObject"
@@ -115,11 +105,11 @@
115105
],
116106
"priority": 30
117107
}
118-
],
119-
"groups": [
120-
{
121-
"ids": [ "ddd" ],
122-
"displayName": "Domain-Driven Design"
108+
},
109+
"groups": {
110+
"ddd" : {
111+
"displayName": "Domain-Driven Design",
112+
"type" : "design"
123113
}
124-
]
114+
}
125115
}
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
{
2-
"stereotypes" : [
3-
{
4-
"id": "org.jmolecules.event.DomainEvent",
2+
"stereotypes" : {
3+
"org.jmolecules.event.DomainEvent" : {
54
"assignments": [
65
"@org.jmolecules.event.annotation.DomainEvent",
76
"org.jmolecules.event.types.DomainEvent"
87
],
98
"groups": [ "org.jmolecules.event" ]
109
},
11-
{
12-
"id": "org.jmolecules.event.DomainEventHandler",
10+
"org.jmolecules.event.DomainEventHandler" : {
1311
"assignments": [
1412
"@org.jmolecules.event.annotation.DomainEventHandler"
1513
],
1614
"groups": [ "org.jmolecules.event" ]
1715
}
18-
],
19-
"groups" : [
20-
{
21-
"ids" : [ "org.jmolecules.event" ],
22-
"displayName" : "Events"
16+
},
17+
"groups" : {
18+
"org.jmolecules.event" : {
19+
"displayName" : "Events",
20+
"type" : "design",
21+
"priority" : 20
2322
}
24-
]
23+
}
2524
}

0 commit comments

Comments
 (0)