Skip to content

Commit b3f0210

Browse files
committed
GH-152 - Tweak identifiers for architecture and DDD stereotype groups.
1 parent 38acc4a commit b3f0210

File tree

5 files changed

+106
-52
lines changed

5 files changed

+106
-52
lines changed
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
{
22
"stereotypes" : [
33
{
4-
"id" : "org.jmolecules.architecture.hexagonal.PrimaryAdapter",
5-
"groups" : [ "org.jmolecules.architecture.hexagonal" ],
4+
"id" : "architecture.hexagonal.PrimaryAdapter",
5+
"groups" : [ "architecture.hexagonal" ],
66
"priority" : 100
77
},
88
{
9-
"id" : "org.jmolecules.architecture.hexagonal.SecondaryAdapter",
10-
"groups" : [ "org.jmolecules.architecture.hexagonal" ],
9+
"id" : "architecture.hexagonal.SecondaryAdapter",
10+
"groups" : [ "architecture.hexagonal" ],
1111
"priority" : 200
1212
},
1313
{
14-
"id" : "org.jmolecules.architecture.hexagonal.Adapter",
15-
"groups" : [ "org.jmolecules.architecture.hexagonal" ],
14+
"id" : "architecture.hexagonal.Adapter",
15+
"groups" : [ "architecture.hexagonal" ],
1616
"priority" : 300
1717
},
1818
{
19-
"id" : "org.jmolecules.architecture.hexagonal.PrimaryPort",
20-
"groups" : [ "org.jmolecules.architecture.hexagonal" ],
19+
"id" : "architecture.hexagonal.PrimaryPort",
20+
"groups" : [ "architecture.hexagonal" ],
2121
"priority" : 100
2222
},
2323
{
24-
"id" : "org.jmolecules.architecture.hexagonal.SecondaryPort",
25-
"groups" : [ "org.jmolecules.architecture.hexagonal" ],
24+
"id" : "architecture.hexagonal.SecondaryPort",
25+
"groups" : [ "architecture.hexagonal" ],
2626
"priority" : 200
2727
},
2828
{
29-
"id" : "org.jmolecules.architecture.hexagonal.Port",
30-
"groups" : [ "org.jmolecules.architecture.hexagonal" ],
29+
"id" : "architecture.hexagonal.Port",
30+
"groups" : [ "architecture.hexagonal" ],
3131
"priority" : 300
3232
},
3333
{
34-
"id" : "org.jmolecules.architecture.hexagonal.Application",
35-
"groups" : [ "org.jmolecules.architecture.hexagonal" ],
34+
"id" : "architecture.hexagonal.Application",
35+
"groups" : [ "architecture.hexagonal" ],
3636
"priority" : 400
3737
}
3838
],
3939
"groups" : [
4040
{
41-
"ids": [ "org.jmolecules.architecture.hexagonal" ],
41+
"ids": [ "architecture.hexagonal" ],
4242
"displayName" : "Hexagonal Architecture"
4343
}
4444
]
45-
}
45+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"stereotypes" : [
3+
{
4+
"id" : "architecture.layered.ApplicationLayer",
5+
"groups" : [ "architecture.layered" ]
6+
},
7+
{
8+
"id" : "architecture.layered.DomainLayer",
9+
"groups" : [ "architecture.layered" ]
10+
},
11+
{
12+
"id" : "architecture.layered.InfrastructureLayer",
13+
"groups" : [ "architecture.layered" ]
14+
},
15+
{
16+
"id" : "architecture.layered.InterfaceLayer",
17+
"groups" : [ "architecture.layered" ]
18+
}
19+
],
20+
"groups" : [
21+
{
22+
"ids": [ "architecture.layered" ],
23+
"displayName" : "Layered Architecture"
24+
}
25+
]
26+
}

jmolecules-architecture/jmolecules-onion-architecture/src/main/resources/META-INF/jmolecules-stereotypes.json

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,51 @@
11
{
22
"stereotypes" : [
33
{
4-
"id" : "org.jmolecules.architecture.onion.ApplicationRing",
5-
"assignments" : [ "@org.jmolecules.architecture.onion.simplified.ApplicationRing" ],
6-
"groups" : [ "org.jmolecules.architecture.onion" ],
7-
"priority" : 10
4+
"id" : "architecture.onion.ApplicationRing",
5+
"assignments" : [
6+
"@architecture.onion.classical.ApplicationRing",
7+
"@architecture.onion.simplified.ApplicationRing"
8+
],
9+
"groups" : [ "architecture.onion" ],
10+
"priority" : 300
811
},
912
{
10-
"id" : "org.jmolecules.architecture.onion.InfrastructureRing",
11-
"assignments" : [ "@org.jmolecules.architecture.onion.simplified.InfrastructureRing" ],
12-
"groups" : [ "org.jmolecules.architecture.onion" ],
13-
"priority" : 0
13+
"id" : "architecture.onion.DomainRing",
14+
"assignments" : [
15+
"@architecture.onion.simplified.DomainRing"
16+
],
17+
"groups" : [ "architecture.onion" ],
18+
"priority" : 200
19+
},
20+
{
21+
"id" : "architecture.onion.DomainModelRing",
22+
"assignments" : [
23+
"@architecture.onion.classical.DomainModelRing"
24+
],
25+
"groups" : [ "architecture.onion" ],
26+
"priority" : 200
27+
},
28+
{
29+
"id" : "architecture.onion.DomainServiceRing",
30+
"assignments" : [
31+
"@architecture.onion.classical.DomainServiceRing"
32+
],
33+
"groups" : [ "architecture.onion" ],
34+
"priority" : 200
35+
},
36+
{
37+
"id" : "architecture.onion.InfrastructureRing",
38+
"assignments" : [
39+
"@architecture.onion.classical.InfrastructureRing",
40+
"@architecture.onion.simplified.InfrastructureRing"
41+
],
42+
"groups" : [ "architecture.onion" ],
43+
"priority" : 100
1444
}
1545
],
1646
"groups" : [
1747
{
18-
"ids" : [ "org.jmolecules.architecture.onion" ],
48+
"ids" : [ "architecture.onion" ],
1949
"displayName" : "Onion Architecture"
2050
}
2151
]

jmolecules-ddd/src/main/java/org/jmolecules/ddd/annotation/ValueObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
@Retention(RetentionPolicy.RUNTIME)
3939
@Target(ElementType.TYPE)
4040
@Documented
41-
@Stereotype(priority = 0)
41+
@Stereotype(priority = 30)
4242
public @interface ValueObject {
4343

4444
}

jmolecules-ddd/src/main/resources/META-INF/jmolecules-stereotypes.json

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,126 +1,124 @@
11
{
22
"stereotypes": [
33
{
4-
"id": "org.jmolecules.ddd.AggregateRoot",
4+
"id": "ddd.AggregateRoot",
55
"assignments": [
66
"@org.jmolecules.ddd.annotation.AggregateRoot",
77
"org.jmolecules.ddd.types.AggregateRoot"
88
],
99
"groups": [
10-
"org.jmolecules.ddd"
10+
"ddd"
1111
],
1212
"priority": 0
1313
},
1414
{
15-
"id": "org.jmolecules.ddd.Association",
15+
"id": "ddd.Association",
1616
"assignments": [
1717
"@org.jmolecules.ddd.annotation.Association",
1818
"org.jmolecules.ddd.types.Association"
1919
],
2020
"groups": [
21-
"org.jmolecules.ddd"
21+
"ddd"
2222
],
2323
"priority": 0
2424
},
2525
{
26-
"id": "org.jmolecules.ddd.BoundedContext",
26+
"id": "ddd.BoundedContext",
2727
"assignments": [
2828
"@org.jmolecules.ddd.annotation.BoundedContext"
2929
],
3030
"groups": [
31-
"org.jmolecules.ddd"
31+
"ddd"
3232
],
3333
"priority": 0
3434
},
3535
{
36-
"id": "org.jmolecules.ddd.Entity",
36+
"id": "ddd.Entity",
3737
"assignments": [
3838
"@org.jmolecules.ddd.annotation.Entity",
3939
"org.jmolecules.ddd.types.Entity"
4040
],
4141
"groups": [
42-
"org.jmolecules.ddd"
42+
"ddd"
4343
],
4444
"priority": 10
4545
},
4646
{
47-
"id": "org.jmolecules.ddd.Factory",
47+
"id": "ddd.Factory",
4848
"assignments": [
4949
"@org.jmolecules.ddd.annotation.Factory"
5050
],
5151
"groups": [
52-
"org.jmolecules.ddd"
52+
"ddd"
5353
],
5454
"priority": 10
5555
},
5656
{
57-
"id": "org.jmolecules.ddd.Identifiable",
57+
"id": "ddd.Identifiable",
5858
"assignments": [
5959
"org.jmolecules.ddd.types.Identifiable"
6060
],
6161
"groups": [
62-
"org.jmolecules.ddd"
62+
"ddd"
6363
],
6464
"priority": 20
6565
},
6666
{
67-
"id": "org.jmolecules.ddd.Identifier",
67+
"id": "ddd.Identifier",
6868
"assignments": [
6969
"org.jmolecules.ddd.types.Identifier"
7070
],
7171
"groups": [
72-
"org.jmolecules.ddd"
72+
"ddd"
7373
],
7474
"priority": 0
7575
},
7676
{
77-
"id": "org.jmolecules.ddd.Module",
77+
"id": "ddd.Module",
7878
"assignments": [
7979
"@org.jmolecules.ddd.annotation.Module"
8080
],
8181
"groups": [
82-
"org.jmolecules.ddd"
82+
"ddd"
8383
],
8484
"priority": 0
8585
},
8686
{
87-
"id": "org.jmolecules.ddd.Repository",
87+
"id": "ddd.Repository",
8888
"assignments": [
8989
"@org.jmolecules.ddd.annotation.Repository",
9090
"org.jmolecules.ddd.types.Repository"
9191
],
9292
"groups": [
93-
"org.jmolecules.ddd"
93+
"ddd"
9494
],
9595
"priority": 0
9696
},
9797
{
98-
"id": "org.jmolecules.ddd.Service",
98+
"id": "ddd.Service",
9999
"assignments": [
100100
"@org.jmolecules.ddd.annotation.Service"
101101
],
102102
"groups": [
103-
"org.jmolecules.ddd"
103+
"ddd"
104104
],
105105
"priority": 0
106106
},
107107
{
108-
"id": "org.jmolecules.ddd.ValueObject",
108+
"id": "ddd.ValueObject",
109109
"assignments": [
110110
"@org.jmolecules.ddd.annotation.ValueObject",
111111
"org.jmolecules.ddd.types.ValueObject"
112112
],
113113
"groups": [
114-
"org.jmolecules.ddd"
114+
"ddd"
115115
],
116-
"priority": 0
116+
"priority": 30
117117
}
118118
],
119119
"groups": [
120120
{
121-
"ids": [
122-
"org.jmolecules.ddd"
123-
],
121+
"ids": [ "ddd" ],
124122
"displayName": "Domain-Driven Design"
125123
}
126124
]

0 commit comments

Comments
 (0)