Sergey Beryozkin wrote
> The question is how to figure out, from only a bean name (which is what 
> the server reports) that it is a component that has to be ignored.

I was thinking of adding something like
    excludeFilters = @ComponentScan.Filter(type =
FilterType.ASSIGNABLE_TYPE,
                                           value = {Client.class})
to AbstractSpringComponentScanServer. However it seems that the Client.class
implemented by the Proxy is org.apache.cxf.jaxrs.client.Client which is not
accessible in cxf-rt-frontend-jaxrs module.


Sergey Beryozkin wrote
> Do you have to create client components as @Bean - can you use a client 
> classes scanning only as a workaround ?

This has other disadvantages, e.g. Swagger2Feature bean will not longer be
picked up and more boilerplate code for manual configuration would be
needed.

Cheers
Dennis



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Limit-JAX-RS-Spring-component-scan-to-certain-packages-tp5776205p5776581.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to