[Java][resteasy] support javax injection instead of static delegate factory#5272
Conversation
If we can test it in CI, yes please include a test cc @jfiala |
|
This looks better than the current implementation, but IMHO there is no need for any delegate pattern here, the class should implement the api interface and all annotations should move into the interface. Pls see how it is done for CXF, I think this way it is easy to use & to understand. Please see PR #4744, there I prepared this for jaxrs-spec. @wing328 to get this into master sooner than release 2.3.0 I think it would be better to do a non-breaking implementation in the way to keep the original class and add a new interface with the suffix "Service" (as proposed here) or simply "I". |
|
@jfiala , i see a lot of resteasy framework implementations with duplicated code. Think we need to refactor it. We can move model files and spec and other framework independent files into "spec" subproject and use it as base in other subprojects. ps: now i will rewrite code for your recomendations and can annotate with deprecation tag interfaces, that will moved into spec. |
@jfiala next release is 2.3.0 so I would suggest @chameleon82 to file this breaking changes against 2.3.0 instead if you guys want to see this enhancement in a stable release earlier. |
|
@chameleon82 when you've time, please resolve the merge conflicts and we'll merge it into current master (2.3.0), and mark it as a breaking change. |
e2d1c12 to
6d26e87
Compare
|
@wing328 resolved. Thanks ) |
|
@chameleon82 I tried to merge this PR into master and update the RestEasy petstore samples via Ref: https://circleci.com/gh/swagger-api/swagger-codegen/2781 I wonder if you can take a look when you've time. |
|
@wing328 updated. Maven file can`t be overwritten when regenerate example. Fixed with deleting it before regeneration. I will discover how to fix it in future with unbreaking. |
|
@chameleon82 all CI tests passed 👍 Thanks for the PR. |
PR for #1686 issue.
Other changes:
Testing issue: Cause this module generates war for Wildfly9/10 (JaxRS2.0), did we need to test it with this environments in ci tests instead of tests with jetty?