-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated to support Apache CXF 3 #5
base: master
Are you sure you want to change the base?
Conversation
Thanks a lot. Also I think we should bump the version with this change |
Yeah the AnnotationUtils was modified to also pass the Service class so I
|
Going with I don't think your approach with passing any() there would work - I mean you'd be effectively doing |
Ok yeah you're right. Maybe your approach is better. What is the general
|
Yes we want to install the advice that would provide subresource instances from Guice, as described here PS. To be more clear: the matchers are general purpose (for finding a JAX-RS resource method) but we use them to scan for JAX-RS resouce methods annoteted with |
Ok I might spend a bit of time un derstanding this code a bit. Thats also
|
…s the service instance
Have reverted the change to the Matcher and used the getDeclaringClass instead |
It looks like the argument was removed in https://git-wip-us.apache.org/repos/asf?p=cxf.git;a=commit;h=30390cc755f58eab3b346dc7b035e6286d6662b8 to handle CXF-6078. I have to think through how to handle this - then I'll merge your PR |
Ok thanks
|
Update: looking at the source of com.google.inject.internal.ProxyFactory there might be a hacky solution -- I still havent decided wether to try to hack it or just leave a disclaimer subresouce injection won't handle CXF-6078 |
Ok thanks for the update. Just keep me informed about this please.
|
Forked from dennisa and tried to make it run. We're not using subresource injection either, so in theory it should work. But it doesn't, for the
If I remove this line form
then I get error 404 for the Changed some of the dependency versions in my repo to the following: maven-compiler-plugin 3.6.2, guice 4.1.0, cxf 3.1.12. Created the servlet in the descendant of GuiceServletContextListener. Not sure if this is correct, but I couldn't find a better place. Here's my code:
Any ideas what am I missing or doing wrong? |
This is n initial stub at getting the guice-cxf to run against Apache CXF 3