kapua
kapua copied to clipboard
JaxbContext refactoring and improvement
This PR refactors the JaxbContext model and usage.
Related Issue None
Description of the solution adopted Improved usage by simplifying the creation and setting of the properties by creation of common utility classes for JaxbContextProvider and JaxbContestResolver.
It adds a new logic which is meant to mitigate the problem of missing mapped classes in the JaxbContext by dinamically adding them and printing a warn message so developer can add the missing classes.
Screenshots None
Any side note on the changes made None
Codecov Report
Merging #3499 (fdbe7a4) into develop (8e01b9d) will decrease coverage by
14.25%
. The diff coverage is67.90%
.
:exclamation: Current head fdbe7a4 differs from pull request most recent head d5f7755. Consider uploading reports for the commit d5f7755 to get more accurate results
@@ Coverage Diff @@
## develop #3499 +/- ##
==============================================
- Coverage 50.13% 35.87% -14.26%
+ Complexity 259 179 -80
==============================================
Files 1669 1670 +1
Lines 32011 32000 -11
Branches 2634 2635 +1
==============================================
- Hits 16048 11480 -4568
- Misses 15028 19899 +4871
+ Partials 935 621 -314
Impacted Files | Coverage Δ | |
---|---|---|
.../app/web/commons/xml/JaxRSJAXBContextProvider.java | 0.00% <0.00%> (ø) |
|
...e/kapua/broker/core/BrokerJAXBContextProvider.java | 0.00% <0.00%> (ø) |
|
...apua/commons/jpa/AbstractEntityManagerFactory.java | 78.12% <ø> (ø) |
|
...ob/engine/commons/wrappers/StepContextWrapper.java | 0.00% <0.00%> (ø) |
|
...ua/app/api/core/MoxyJsonConfigContextResolver.java | 100.00% <ø> (ø) |
|
...ua/app/api/core/exception/model/ExceptionInfo.java | 72.72% <ø> (ø) |
|
.../kapua/app/api/web/RestApiJAXBContextProvider.java | 0.00% <0.00%> (-100.00%) |
:arrow_down: |
...s/util/xml/FallbackMappingJAXBContextProvider.java | 78.57% <78.57%> (ø) |
|
...a/commons/util/xml/DefaultJAXBContextProvider.java | 85.71% <85.71%> (ø) |
|
.../app/web/commons/xml/JaxRSJAXBContextResolver.java | 100.00% <100.00%> (ø) |
|
... and 262 more |