Hi Dennis
On 22/01/17 20:03, Dennis Kieselhorst wrote:
Hi Sergey,
thanks for the feedback. You're right the beans are annotated with Spring
annotations, this is needed to have the clients injected to other classes.
If I remove the annotation, autowiring will be no longer possible.
I agree that component scan must be done without @ComponentScan to fix that.
What about excluding beans created by JAXRSClientFactoryBean in
AbstractSpringComponentScanServer? Would it be easier to fix? In my view it
doesn't make sense to expose that client beans as resources in any case...
Can you clarify it please. If the server scan component sees a given
component as a valid JAXRS resource then it would register it, how else
would it know that a given component has to be excluded ?
Or do you see it picking up proxies ?
Cheers, Sergey
Cheers
Dennis
--
View this message in context:
http://cxf.547215.n5.nabble.com/Limit-JAX-RS-Spring-component-scan-to-certain-packages-tp5776205p5776504.html
Sent from the cxf-user mailing list archive at Nabble.com.