Commit aed6553
authored
Refactor Backend Architecture for the AasRepository and AasService (#570)
* test: extract test suite from aasmanagermultithreading test
* test: add failing test for aasenv multithreading mongoDB
* refactor: experimental change of the design of the AasBackend + CrudAasRepository
* refactor: replace AasService dep in AasRespository through Repository Fragment
* feat: implement SmRef methods of the MongoDB AasServiceBackend
* style: add license header
* refactor: introduce method to inject a generic fragment -- indep. of backend
* feat: implement InMemoryAasBackend based on AasService
* refactor: rename AasServiceBackend to AasServiceOperations
* refactor: rename AasBackend to AasRepositoryBackend
* test: fix failing tests due to InMemoryAasBackend change
* refactor: improve name consistency
* refactor: rename SimpleAasRepositoryFactory to CrudAasRepositoryFactory
* refactor: modify CrudAasRepositoryFactory constructor
* feat: implement remaining methods from MongoDBAasServiceOperations
* fix: fix exception handling in MongoDbAasServiceOperations
* fix: remaining tests affected by the arch refactor
* fix: add configuration to registryintegration test
* test: limit configuration to registryintegration tests
* refactor: move AasServiceOperation to aasservice
* feat: add repository fragment configuration postProcessor
* refactor: remove qualifier from aasServiceOperations bean
* fix: fix InMemory backend not working
* refactor: move MongoDBAasServiceOperations to aasservice-backend-mongodb
* docs: improve brief of AasRepositoryFragmentConfig
* refactor: extract filehandling logic from service to util
* optimize: reduce number of queries when using aasServiceOperations by improving interface expectations
* refactor: simplify MongoDBAasServiceOps collectionName injection
* docs: bump license header year; add missing license headers1 parent 7318211 commit aed6553
File tree
43 files changed
+1227
-501
lines changed- basyx.aasenvironment
- basyx.aasenvironment-client/src/test
- java/org/eclipse/digitaltwin/basyx/aasenvironment/client
- resources
- basyx.aasenvironment-core/src/test/java/org/eclipse/digitaltwin/basyx/aasenvironment
- basyx.aasenvironment.component
- src/test/java/org/eclipse/digitaltwin/basyx/aasenvironment/component
- basyx.aasrepository
- basyx.aasrepository-backend-inmemory
- src
- main/java/org/eclipse/digitaltwin/basyx/aasrepository/backend/inmemory
- test/java/org/eclipse/digitaltwin/basyx/aasrepository/backend/inmemory
- basyx.aasrepository-backend-mongodb
- src
- main/java/org/eclipse/digitaltwin/basyx/aasrepository/backend/mongodb
- test
- java/org/eclipse/digitaltwin/basyx/aasrepository/backend/mongodb
- resources
- basyx.aasrepository-backend/src
- main/java/org/eclipse/digitaltwin/basyx/aasrepository/backend
- test/java/org/eclipse/digitaltwin/basyx/aasrepository/backend
- basyx.aasrepository-feature-mqtt/src/test/java/org/eclipse/digitaltwin/basyx/aasrepository/feature/mqtt
- basyx.aasrepository-feature-registry-integration/src/test/java/org/eclipse/digitaltwin/basyx/aasrepository/feature/registry/integration
- basyx.aasrepository-http/src/test
- java/org/eclipse/digitaltwin/basyx/aasrepository/http/testconfig
- resources
- basyx.aasrepository.component/src/main/java/org/eclipse/digitaltwin/basyx/aasrepository/component
- basyx.aasservice
- basyx.aasservice-backend-inmemory/src/main/java/org/eclipse/digitaltwin/basyx/aasservice/backend
- basyx.aasservice-backend-mongodb
- src/main/java/org/eclipse/digitaltwin/basyx/aasservice/backend
- basyx.aasservice-core/src/main/java/org/eclipse/digitaltwin/basyx/aasservice
- basyx.aasservice-feature-mqtt/src/test/java/org/eclipse/digitaltwin/basyx/aasservice/feature/mqtt
- basyx.common
- basyx.core/src/main/java/org/eclipse/digitaltwin/basyx/core/exceptions
- basyx.filerepository-backend/src/main/java/org/eclipse/digitaltwin/basyx/core/filerepository
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
43 files changed
+1227
-501
lines changedLines changed: 100 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
Lines changed: 10 additions & 72 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 28 | | |
47 | 29 | | |
48 | 30 | | |
49 | | - | |
50 | 31 | | |
51 | | - | |
52 | 32 | | |
53 | 33 | | |
54 | 34 | | |
55 | 35 | | |
56 | | - | |
57 | 36 | | |
58 | 37 | | |
59 | 38 | | |
60 | | - | |
| 39 | + | |
61 | 40 | | |
62 | 41 | | |
63 | 42 | | |
64 | 43 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 44 | | |
| 45 | + | |
71 | 46 | | |
72 | 47 | | |
73 | 48 | | |
74 | 49 | | |
75 | | - | |
76 | | - | |
| 50 | + | |
77 | 51 | | |
78 | 52 | | |
79 | 53 | | |
80 | 54 | | |
81 | | - | |
82 | 55 | | |
83 | 56 | | |
84 | 57 | | |
| |||
98 | 71 | | |
99 | 72 | | |
100 | 73 | | |
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 | 74 | | |
128 | 75 | | |
129 | 76 | | |
| |||
137 | 84 | | |
138 | 85 | | |
139 | 86 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
145 | 90 | | |
146 | 91 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
156 | 95 | | |
157 | | - | |
158 | 96 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
basyx.aasenvironment/basyx.aasenvironment-client/src/test/resources/application-mongodb.properties
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| |||
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
80 | | - | |
| 79 | + | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
| |||
0 commit comments