microservice_framework_version_6
microservice_framework_version_6 copied to clipboard
messaging-adapter-core and rest-adapter-core should depend on api not on core
Currently messaging-adapter-core and rest-adapter-core depend on the implementation module (core) rather than api. We shuld break this dependency and depend on api. The prerequisite for this task is: https://github.com/CJSCommonPlatform/microservice_framework/issues/407
I doesn't seem as simple as removing core dependencies and adding framework-api-core in the two modules. The following classes will become broken: JsonSchemaValidationInterceptor.java JsonValidationLoggerHelper.java DefaultJmsProcessor.java
After a discussion we've come to the following steps to achieve this:
-
uk.gov.justice.services.adapter.messaging.DefaultJmsProcessor - use SPI approach (using static method in interface) - will be done as a start in a separate pull request.
-
uk.gov.justice.services.core.mapping.NameToMediaTypeConverter - make an interface in API and implement in core (keeping same packaging)
-
Create a custom Exception in API replacing ValidationException used in JsonSchemaValidationInterceptor and JsonValidationLoggerHelper